diff --git a/Assets/Database Icons.sketch/Data b/Assets/Database Icons.sketch/Data index 8f1aef27..6b8e67a1 100644 Binary files a/Assets/Database Icons.sketch/Data and b/Assets/Database Icons.sketch/Data differ diff --git a/Assets/Database Icons.sketch/QuickLook/Preview.png b/Assets/Database Icons.sketch/QuickLook/Preview.png index e53dc711..a3cf5144 100644 Binary files a/Assets/Database Icons.sketch/QuickLook/Preview.png and b/Assets/Database Icons.sketch/QuickLook/Preview.png differ diff --git a/Assets/Database Icons.sketch/QuickLook/Thumbnail.png b/Assets/Database Icons.sketch/QuickLook/Thumbnail.png index 7736f7be..24f42462 100644 Binary files a/Assets/Database Icons.sketch/QuickLook/Thumbnail.png and b/Assets/Database Icons.sketch/QuickLook/Thumbnail.png differ diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index 3ff13628..344304ca 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -76,6 +76,11 @@ 4CAD748E15B88AC100104512 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CAD748D15B88AC100104512 /* libz.dylib */; }; 4CBA981815BA0DB600721965 /* MPDatabaseDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CBA981715BA0DB600721965 /* MPDatabaseDocument.m */; }; 4CC6259115BA1C99002F5B11 /* MPOutlineViewDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CC6259015BA1C99002F5B11 /* MPOutlineViewDelegate.m */; }; + 4CD78ABC16D155FF00768A1D /* 07_NotepadTemplate.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4CD78AB716D155FF00768A1D /* 07_NotepadTemplate.pdf */; }; + 4CD78ABD16D155FF00768A1D /* 08_SocketTemplate.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4CD78AB816D155FF00768A1D /* 08_SocketTemplate.pdf */; }; + 4CD78ABE16D155FF00768A1D /* 09_IdentityTemplate.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4CD78AB916D155FF00768A1D /* 09_IdentityTemplate.pdf */; }; + 4CD78ABF16D155FF00768A1D /* 10_ContactTemplate.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4CD78ABA16D155FF00768A1D /* 10_ContactTemplate.pdf */; }; + 4CD78AC016D155FF00768A1D /* 11_CameraTemplate.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 4CD78ABB16D155FF00768A1D /* 11_CameraTemplate.pdf */; }; 4CD884B715BD47080042BBF8 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4CD884B615BD47080042BBF8 /* MainWindow.xib */; }; /* End PBXBuildFile section */ @@ -212,6 +217,11 @@ 4CBA981715BA0DB600721965 /* MPDatabaseDocument.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPDatabaseDocument.m; sourceTree = ""; }; 4CC6258F15BA1C99002F5B11 /* MPOutlineViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPOutlineViewDelegate.h; sourceTree = ""; }; 4CC6259015BA1C99002F5B11 /* MPOutlineViewDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPOutlineViewDelegate.m; sourceTree = ""; }; + 4CD78AB716D155FF00768A1D /* 07_NotepadTemplate.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = 07_NotepadTemplate.pdf; sourceTree = ""; }; + 4CD78AB816D155FF00768A1D /* 08_SocketTemplate.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = 08_SocketTemplate.pdf; sourceTree = ""; }; + 4CD78AB916D155FF00768A1D /* 09_IdentityTemplate.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = 09_IdentityTemplate.pdf; sourceTree = ""; }; + 4CD78ABA16D155FF00768A1D /* 10_ContactTemplate.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = 10_ContactTemplate.pdf; sourceTree = ""; }; + 4CD78ABB16D155FF00768A1D /* 11_CameraTemplate.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = 11_CameraTemplate.pdf; sourceTree = ""; }; 4CD884B615BD47080042BBF8 /* MainWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = ""; }; /* End PBXFileReference section */ @@ -285,6 +295,11 @@ 4C2E381A16D11FF900037A9D /* 03_ServerTemplate.pdf */, 4C2E381B16D11FF900037A9D /* 04_KlipperTemplate.pdf */, 4C2E381C16D11FF900037A9D /* 05_LanguagesTemplate.pdf */, + 4CD78AB716D155FF00768A1D /* 07_NotepadTemplate.pdf */, + 4CD78AB816D155FF00768A1D /* 08_SocketTemplate.pdf */, + 4CD78AB916D155FF00768A1D /* 09_IdentityTemplate.pdf */, + 4CD78ABA16D155FF00768A1D /* 10_ContactTemplate.pdf */, + 4CD78ABB16D155FF00768A1D /* 11_CameraTemplate.pdf */, ); path = Icons; sourceTree = ""; @@ -605,6 +620,11 @@ 4C2E381D16D11FF900037A9D /* 03_ServerTemplate.pdf in Resources */, 4C2E381E16D11FF900037A9D /* 04_KlipperTemplate.pdf in Resources */, 4C2E381F16D11FF900037A9D /* 05_LanguagesTemplate.pdf in Resources */, + 4CD78ABC16D155FF00768A1D /* 07_NotepadTemplate.pdf in Resources */, + 4CD78ABD16D155FF00768A1D /* 08_SocketTemplate.pdf in Resources */, + 4CD78ABE16D155FF00768A1D /* 09_IdentityTemplate.pdf in Resources */, + 4CD78ABF16D155FF00768A1D /* 10_ContactTemplate.pdf in Resources */, + 4CD78AC016D155FF00768A1D /* 11_CameraTemplate.pdf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MacPass/Icons/07_NotepadTemplate.pdf b/MacPass/Icons/07_NotepadTemplate.pdf new file mode 100644 index 00000000..9780d829 Binary files /dev/null and b/MacPass/Icons/07_NotepadTemplate.pdf differ diff --git a/MacPass/Icons/08_SocketTemplate.pdf b/MacPass/Icons/08_SocketTemplate.pdf new file mode 100644 index 00000000..0d1ac335 Binary files /dev/null and b/MacPass/Icons/08_SocketTemplate.pdf differ diff --git a/MacPass/Icons/09_IdentityTemplate.pdf b/MacPass/Icons/09_IdentityTemplate.pdf new file mode 100644 index 00000000..3dbd82bc Binary files /dev/null and b/MacPass/Icons/09_IdentityTemplate.pdf differ diff --git a/MacPass/Icons/10_ContactTemplate.pdf b/MacPass/Icons/10_ContactTemplate.pdf new file mode 100644 index 00000000..f4bbecc2 Binary files /dev/null and b/MacPass/Icons/10_ContactTemplate.pdf differ diff --git a/MacPass/Icons/11_CameraTemplate.pdf b/MacPass/Icons/11_CameraTemplate.pdf new file mode 100644 index 00000000..6c2cf2bb Binary files /dev/null and b/MacPass/Icons/11_CameraTemplate.pdf differ diff --git a/MacPass/MPDatabaseDocument.m b/MacPass/MPDatabaseDocument.m index 400da26e..fad363e2 100644 --- a/MacPass/MPDatabaseDocument.m +++ b/MacPass/MPDatabaseDocument.m @@ -83,6 +83,14 @@ NSString *const MPDidLoadDataBaseNotification = @"DidLoadDataBaseNotification"; return self; } +- (void)dealloc +{ + self.tree = nil; + self.file = nil; + self.password = nil; + [super dealloc]; +} + - (KdbGroup *)root { return [self.tree root]; } diff --git a/MacPass/MPIconHelper.h b/MacPass/MPIconHelper.h index f90d5b69..97e57d68 100644 --- a/MacPass/MPIconHelper.h +++ b/MacPass/MPIconHelper.h @@ -14,7 +14,12 @@ typedef enum { MPIconWarning, MPIconServer, MPIconKlipper, - MPIconLanguages + MPIconLanguages, + MPIconNotepad, + MPIconSocket, + MPIconIdentity, + MPIconContact, + MPIconCamera } MPIconType; @interface MPIconHelper : NSObject diff --git a/MacPass/MPIconHelper.m b/MacPass/MPIconHelper.m index 0aeb7eec..67cf97ad 100644 --- a/MacPass/MPIconHelper.m +++ b/MacPass/MPIconHelper.m @@ -23,8 +23,13 @@ @(MPIconPackageNetwork): @"01_PackageNetworkTemplate", @(MPIconPassword): @"00_PasswordTemplate", @(MPIconServer): @"03_ServerTemplate", - @(MPIconWarning): @"02_MessageBoxWarningTemplate" }; - + @(MPIconWarning): @"02_MessageBoxWarningTemplate", + @(MPIconCamera): @"11_CameraTemplate", + @(MPIconContact): @"10_ContactTemplate", + @(MPIconIdentity): @"09_IdentityTemplate", + @(MPIconNotepad): @"07_NotepadTemplate", + @(MPIconSocket): @"08_SocketTemplate" + }; return imageNames; } diff --git a/MacPass/MPMainWindowController.m b/MacPass/MPMainWindowController.m index 72fe3297..69f51bed 100644 --- a/MacPass/MPMainWindowController.m +++ b/MacPass/MPMainWindowController.m @@ -91,8 +91,8 @@ NSString *const kOutlineViewIdentifier = @"OutlineView"; NSSize frameSize = [self.contentView frame].size; [self.passwordView setFrame:NSMakeRect(0,0, frameSize.width, frameSize.height)]; [self.contentView setAutoresizesSubviews:YES]; - [self.contentView addSubview:self.passwordView]; - + [self.contentView replaceSubview:self.welcomeView with:self.passwordView]; + [self.window makeFirstResponder:self.passwordView]; } - (void)usePassword:(id)sender { diff --git a/MacPass/PasswordView.xib b/MacPass/PasswordView.xib index a46a944b..5b3d9c9b 100644 --- a/MacPass/PasswordView.xib +++ b/MacPass/PasswordView.xib @@ -173,6 +173,7 @@ {{209, 13}, {74, 32}} + _NS:9 YES @@ -185,7 +186,7 @@ -2038284288 129 - + DQ 200 25 @@ -706,6 +707,7 @@ NSOutlineView NSTextField NSView + NSView @@ -728,6 +730,10 @@ passwordView NSView + + welcomeView + NSView + IBProjectSource