diff --git a/KeePassKit b/KeePassKit index 164f814a..e5288266 160000 --- a/KeePassKit +++ b/KeePassKit @@ -1 +1 @@ -Subproject commit 164f814a5ed08a11d23859b15191a1effe2dca31 +Subproject commit e52882661c9e6577c4ee0ff4f84f07dc653caf97 diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index c952c817..b5c143fc 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -217,6 +217,7 @@ 4CC7EA1B17807E7E0089D4F3 /* HNHRoundendTextFieldCellHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CC7EA1A17807E7E0089D4F3 /* HNHRoundendTextFieldCellHelper.m */; }; 4CCEDE2A179F203B008402BE /* MPOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CCEDE29179F203B008402BE /* MPOutlineView.m */; }; 4CCEDE2E179F213B008402BE /* MPNotifications.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CCEDE2D179F213B008402BE /* MPNotifications.m */; }; + 4CCEDE32179F5B6C008402BE /* KPKDataStreamer.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CCEDE31179F5B6C008402BE /* KPKDataStreamer.m */; }; 4CD3ABBA178F71B50073F5C5 /* KPKTree.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CD3ABB4178F71B50073F5C5 /* KPKTree.m */; }; 4CD3ABBF178F72610073F5C5 /* KPKEntry.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CD3ABBE178F72610073F5C5 /* KPKEntry.m */; }; 4CD3ABC2178F72720073F5C5 /* KPKGroup.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CD3ABC1178F72720073F5C5 /* KPKGroup.m */; }; @@ -661,6 +662,9 @@ 4CCEDE29179F203B008402BE /* MPOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPOutlineView.m; sourceTree = ""; }; 4CCEDE2C179F2122008402BE /* MPNotifications.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MPNotifications.h; sourceTree = ""; }; 4CCEDE2D179F213B008402BE /* MPNotifications.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPNotifications.m; sourceTree = ""; }; + 4CCEDE2F179F550D008402BE /* KPKTreeReading.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KPKTreeReading.h; sourceTree = ""; }; + 4CCEDE30179F5B6C008402BE /* KPKDataStreamer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KPKDataStreamer.h; sourceTree = ""; }; + 4CCEDE31179F5B6C008402BE /* KPKDataStreamer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KPKDataStreamer.m; sourceTree = ""; }; 4CD3ABB2178F71B50073F5C5 /* KPKVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KPKVersion.h; path = Format/KPKVersion.h; sourceTree = ""; }; 4CD3ABB3178F71B50073F5C5 /* KPKTree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KPKTree.h; sourceTree = ""; }; 4CD3ABB4178F71B50073F5C5 /* KPKTree.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KPKTree.m; sourceTree = ""; }; @@ -1555,6 +1559,9 @@ 4C1842CF179C64DD00E2F5BC /* KPKLegacyTreeCryptor.m */, 4C1842D4179C6DE400E2F5BC /* KPKHeaderReading.h */, 4C1842D5179C6F1800E2F5BC /* KPKHeaderWriting.h */, + 4CCEDE2F179F550D008402BE /* KPKTreeReading.h */, + 4CCEDE30179F5B6C008402BE /* KPKDataStreamer.h */, + 4CCEDE31179F5B6C008402BE /* KPKDataStreamer.m */, ); path = IO; sourceTree = ""; @@ -1978,6 +1985,7 @@ 4CFC873E179DF200000DFC03 /* KPKTimeInfo.m in Sources */, 4CCEDE2A179F203B008402BE /* MPOutlineView.m in Sources */, 4CCEDE2E179F213B008402BE /* MPNotifications.m in Sources */, + 4CCEDE32179F5B6C008402BE /* KPKDataStreamer.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MacPass/Base.lproj/InspectorView.xib b/MacPass/Base.lproj/InspectorView.xib index d1488129..1623270a 100644 --- a/MacPass/Base.lproj/InspectorView.xib +++ b/MacPass/Base.lproj/InspectorView.xib @@ -64,6 +64,7 @@ {293, 30} + _NS:9 HNHGradientView @@ -132,13 +133,13 @@ {{0, 31}, {293, 466}} - + _NS:9 1 - + 256 @@ -146,6 +147,7 @@ 268 {{17, 432}, {35, 14}} + _NS:1535 YES @@ -186,12 +188,13 @@ 268 {{20, 402}, {253, 22}} + _NS:9 YES - -1804599231 - 272631040 + -1805647807 + 272632064 _NS:9 @@ -223,6 +226,7 @@ 268 {{17, 380}, {58, 14}} + _NS:1535 YES @@ -243,12 +247,13 @@ 268 {{20, 350}, {253, 22}} + _NS:9 YES - -1804599231 - 272631040 + -1805647807 + 272632064 _NS:9 @@ -264,6 +269,7 @@ 268 {{20, 298}, {253, 22}} + _NS:9 YES @@ -285,6 +291,7 @@ 268 {{17, 328}, {25, 14}} + _NS:1535 YES @@ -305,6 +312,7 @@ 268 {{17, 276}, {58, 14}} + _NS:1535 YES @@ -325,6 +333,7 @@ 268 {{20, 219}, {253, 19}} + _NS:9 {250, 750} @@ -354,6 +363,7 @@ 268 {{17, 53}, {259, 11}} + _NS:1535 YES @@ -378,7 +388,8 @@ 268 {{17, 34}, {259, 11}} - + + _NS:1535 YES @@ -398,6 +409,7 @@ 268 {{20, 246}, {214, 22}} + _NS:9 YES @@ -422,6 +434,7 @@ 268 {{242, 244}, {31, 25}} + _NS:22 YES @@ -453,6 +466,7 @@ {{17, 140}, {259, 50}} + _NS:9 YES @@ -481,6 +495,7 @@ 268 {{17, 198}, {38, 14}} + _NS:1535 YES @@ -498,6 +513,8 @@ {293, 466} + + _NS:11 @@ -524,7 +541,7 @@ 2322 {251, 384} - + _NS:13 @@ -641,7 +658,7 @@ {{20, 20}, {253, 386}} - + _NS:9 133138 @@ -854,7 +871,6 @@ -2147483392 {{1, 147}, {52, 16}} - _NS:60 NO 1 @@ -886,7 +902,7 @@ - + 256 @@ -894,7 +910,6 @@ 268 {{241, 429}, {32, 19}} - _NS:9 YES @@ -920,7 +935,6 @@ 268 {{17, 432}, {80, 14}} - _NS:1535 YES @@ -950,7 +964,6 @@ {259, 400} - _NS:13 YES @@ -1013,7 +1026,6 @@ {{1, 1}, {259, 400}} - _NS:11 @@ -1025,7 +1037,6 @@ -2147483392 {{224, 17}, {15, 102}} - _NS:58 NO @@ -1038,8 +1049,7 @@ -2147483392 {{1, 119}, {223, 15}} - - + _NS:60 NO 1 @@ -1050,7 +1060,6 @@ {{16, 20}, {261, 402}} - _NS:9 133681 @@ -1064,8 +1073,6 @@ {293, 466} - - Fields @@ -1073,19 +1080,20 @@ - + 6 YES YES - + {293, 529} + _NS:11 @@ -5288,7 +5296,7 @@ - 2459 + 2471 diff --git a/MacPass/EntryView.xib b/MacPass/EntryView.xib index f0b3f9da..fdd3330a 100644 --- a/MacPass/EntryView.xib +++ b/MacPass/EntryView.xib @@ -52,51 +52,13 @@ 268 - - - 268 - {{328, 8}, {38, 14}} - - _NS:1535 - YES - - 68157504 - 272761856 - 0 Items - - LucidaGrande - 11 - 3100 - - _NS:1535 - - - 6 - System - controlColor - - 3 - MC42NjY2NjY2NjY3AA - - - - 6 - System - controlTextColor - - 3 - MAA - - - - NO - 268 {{7, 5}, {32, 19}} - + + _NS:9 YES @@ -126,6 +88,7 @@ {694, 30} + _NS:9 HNHGradientView @@ -144,6 +107,7 @@ {694, 548} + _NS:13 YES @@ -154,6 +118,7 @@ 256 {694, 17} + @@ -174,7 +139,11 @@ 75497536 2048 - + + LucidaGrande + 11 + 3100 + 6 System @@ -188,7 +157,10 @@ 6 System headerTextColor - + + 3 + MAA + @@ -205,9 +177,17 @@ 6 System controlBackgroundColor - + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + - 3 YES @@ -351,6 +331,7 @@ {{0, 17}, {694, 548}} + _NS:11 @@ -362,6 +343,7 @@ -2147483392 {{224, 17}, {15, 102}} + _NS:58 NO @@ -374,6 +356,7 @@ -2147483392 {{0, 310}, {480, 16}} + _NS:60 NO @@ -390,6 +373,7 @@ {694, 17} + @@ -398,6 +382,7 @@ {{0, 30}, {694, 565}} + _NS:9 133680 @@ -413,6 +398,7 @@ {694, 594} + _NS:9 NSView @@ -475,14 +461,6 @@ 745 - - - entryCountTextField - - - - 842 - textField @@ -504,7 +482,12 @@ Table View Cell - + + 6 + System + controlColor + + NO @@ -1476,42 +1459,10 @@ - - 10 - 0 - - 10 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - - - - 9 - 0 - - 9 - 1 - - 0.0 - - 1000 - - 5 - 22 - 2 - - 10 0 - + 10 1 @@ -1519,8 +1470,8 @@ 1000 - 6 - 24 + 5 + 22 2 @@ -1556,7 +1507,6 @@ 1 - @@ -1625,51 +1575,7 @@ - 835 - - - - - - 7 - 0 - - 0 - 1 - - 32 - - 1000 - - 3 - 9 - 1 - - - - - - 836 - - - - - 837 - - - - - 839 - - - - - 840 - - - - - 841 + 843 @@ -1809,11 +1715,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - + - - @@ -1831,24 +1735,127 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin - 842 + 843 + + + + + HNHGradientView + NSView + + IBProjectSource + ./Classes/HNHGradientView.h + + + + MPEntryViewController + MPViewController + + NSButton + HNHGradientView + NSTextField + NSTableView + NSView + NSButton + NSTextField + NSSearchField + NSButton + NSButton + NSButton + NSLayoutConstraint + HNHGradientView + + + + addEntryButton + NSButton + + + bottomBar + HNHGradientView + + + entryCountTextField + NSTextField + + + entryTable + NSTableView + + + filterBar + NSView + + + filterDoneButton + NSButton + + + filterLabelTextField + NSTextField + + + filterSearchField + NSSearchField + + + filterTitleButton + NSButton + + + filterURLButton + NSButton + + + filterUsernameButton + NSButton + + + tableToTop + NSLayoutConstraint + + + trashBar + HNHGradientView + + + + IBProjectSource + ./Classes/MPEntryViewController.h + + + + MPTableView + NSTableView + + IBProjectSource + ./Classes/MPTableView.h + + + + MPViewController + NSViewController + + IBProjectSource + ./Classes/MPViewController.h + + + + NSLayoutConstraint + NSObject + + IBProjectSource + ./Classes/NSLayoutConstraint.h + + + - 0 IBCocoaFramework YES diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index a31c0988..e628ce3b 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -254,7 +254,7 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername"; } /* If a grup is the current item, see if we already show that group - */ + */ if(document.selectedItem == document.selectedGroup) { /* If we reselct the group, or just another group diff --git a/MacPass/MPInspectorViewController.m b/MacPass/MPInspectorViewController.m index f4951fbd..ee03f866 100644 --- a/MacPass/MPInspectorViewController.m +++ b/MacPass/MPInspectorViewController.m @@ -410,10 +410,14 @@ enum { - (IBAction)finishEdit:(id)sender { NSUndoManager *undoManger = [[[self windowController] document] undoManager]; - [undoManger setActionName:@"Edit"]; + if([undoManger canUndo]) { + [undoManger setActionName:@"Edit"]; + } [undoManger endUndoGrouping]; [self.titleTextField setEditable:NO]; + [self.titleTextField setSelectable:YES]; [self.usernameTextField setEditable:NO]; + [self.usernameTextField setSelectable:YES]; }