diff --git a/HNHUi b/HNHUi index f31bb9c9..3cce12f4 160000 --- a/HNHUi +++ b/HNHUi @@ -1 +1 @@ -Subproject commit f31bb9c91c76b196d6adcc73c9b5a78f0379a1e1 +Subproject commit 3cce12f4bc026948e4d31e16fa995e7898996d91 diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index 7a9ffc2c..c77cbf51 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -10,8 +10,6 @@ 4C01C23F1764D2980016D5D0 /* KdbEntry+Undo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C23E1764D2980016D5D0 /* KdbEntry+Undo.m */; }; 4C01C2421764D8980016D5D0 /* MPContextMenuHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C2411764D8980016D5D0 /* MPContextMenuHelper.m */; }; 4C01C245176500C40016D5D0 /* HNHLevelIndicatorCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C01C244176500C40016D5D0 /* HNHLevelIndicatorCell.m */; }; - 4C0D9B37177F84D700D0857C /* HNHSecureTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C0D9B36177F84D700D0857C /* HNHSecureTextView.m */; }; - 4C0D9B3A177F867100D0857C /* HNHSecureLayoutManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C0D9B39177F867100D0857C /* HNHSecureLayoutManager.m */; }; 4C16BA6217879A3C002B42BD /* MPPasswordStringFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C16BA6117879A3C002B42BD /* MPPasswordStringFormatter.m */; }; 4C1DDCDD1711ECEB00C98DA3 /* PasswordCreatorWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C1DDCDC1711ECEB00C98DA3 /* PasswordCreatorWindow.xib */; }; 4C22040D1746ED160054C916 /* KdbGroup+Undo.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C22040C1746ED160054C916 /* KdbGroup+Undo.m */; }; @@ -178,6 +176,7 @@ 4CC7EA1B17807E7E0089D4F3 /* HNHRoundendTextFieldCellHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CC7EA1A17807E7E0089D4F3 /* HNHRoundendTextFieldCellHelper.m */; }; 4CD5D702177A5EE400100649 /* DatabaseSettingsWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4CD5D701177A5EE400100649 /* DatabaseSettingsWindow.xib */; }; 4CD5D705177A5F3300100649 /* MPDatabaseSettingsWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CD5D704177A5F3300100649 /* MPDatabaseSettingsWindowController.m */; }; + 4CD6C5AE1789FDE6000891F6 /* HNHRoundedSecureTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CD6C5AD1789FDE6000891F6 /* HNHRoundedSecureTextField.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 */; }; @@ -210,10 +209,6 @@ 4C01C2411764D8980016D5D0 /* MPContextMenuHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPContextMenuHelper.m; sourceTree = ""; }; 4C01C243176500C40016D5D0 /* HNHLevelIndicatorCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHLevelIndicatorCell.h; sourceTree = ""; }; 4C01C244176500C40016D5D0 /* HNHLevelIndicatorCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHLevelIndicatorCell.m; sourceTree = ""; }; - 4C0D9B35177F84D700D0857C /* HNHSecureTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHSecureTextView.h; sourceTree = ""; }; - 4C0D9B36177F84D700D0857C /* HNHSecureTextView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHSecureTextView.m; sourceTree = ""; }; - 4C0D9B38177F867100D0857C /* HNHSecureLayoutManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHSecureLayoutManager.h; sourceTree = ""; }; - 4C0D9B39177F867100D0857C /* HNHSecureLayoutManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHSecureLayoutManager.m; sourceTree = ""; }; 4C16BA6017879A3C002B42BD /* MPPasswordStringFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPPasswordStringFormatter.h; sourceTree = ""; }; 4C16BA6117879A3C002B42BD /* MPPasswordStringFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPPasswordStringFormatter.m; sourceTree = ""; }; 4C1DDCDC1711ECEB00C98DA3 /* PasswordCreatorWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PasswordCreatorWindow.xib; sourceTree = ""; }; @@ -531,6 +526,8 @@ 4CD5D701177A5EE400100649 /* DatabaseSettingsWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = DatabaseSettingsWindow.xib; sourceTree = ""; }; 4CD5D703177A5F3300100649 /* MPDatabaseSettingsWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPDatabaseSettingsWindowController.h; sourceTree = ""; }; 4CD5D704177A5F3300100649 /* MPDatabaseSettingsWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MPDatabaseSettingsWindowController.m; sourceTree = ""; }; + 4CD6C5AC1789FDE6000891F6 /* HNHRoundedSecureTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNHRoundedSecureTextField.h; sourceTree = ""; }; + 4CD6C5AD1789FDE6000891F6 /* HNHRoundedSecureTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNHRoundedSecureTextField.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 = ""; }; @@ -1172,10 +1169,12 @@ 4C46E09D17673A0A00DA62E8 /* HNHShadowBox.m */, 4CC7EA1917807E7E0089D4F3 /* HNHRoundendTextFieldCellHelper.h */, 4CC7EA1A17807E7E0089D4F3 /* HNHRoundendTextFieldCellHelper.m */, - 4CC3AAB8175F4983003EF01B /* HNHRoundedTextFieldCell.h */, - 4CC3AAB9175F4983003EF01B /* HNHRoundedTextFieldCell.m */, 4C79DF28176685870083708F /* HNHRoundedTextField.h */, 4C79DF29176685870083708F /* HNHRoundedTextField.m */, + 4CD6C5AC1789FDE6000891F6 /* HNHRoundedSecureTextField.h */, + 4CD6C5AD1789FDE6000891F6 /* HNHRoundedSecureTextField.m */, + 4CC3AAB8175F4983003EF01B /* HNHRoundedTextFieldCell.h */, + 4CC3AAB9175F4983003EF01B /* HNHRoundedTextFieldCell.m */, 4C9D6AA717615199001C660C /* HNHRoundedSecureTextFieldCell.h */, 4C9D6AA817615199001C660C /* HNHRoundedSecureTextFieldCell.m */, 4C58BD4D176370B100B8178C /* HNHBadgedTextField.h */, @@ -1196,10 +1195,6 @@ 4CF78059176E6D5F0032EE71 /* HNHTableRowView.m */, 4C52A242177D7B9F0000D88F /* HNHScrollView.h */, 4C52A243177D7B9F0000D88F /* HNHScrollView.m */, - 4C0D9B35177F84D700D0857C /* HNHSecureTextView.h */, - 4C0D9B36177F84D700D0857C /* HNHSecureTextView.m */, - 4C0D9B38177F867100D0857C /* HNHSecureLayoutManager.h */, - 4C0D9B39177F867100D0857C /* HNHSecureLayoutManager.m */, ); path = HNHUi; sourceTree = ""; @@ -1532,8 +1527,6 @@ 4C4FCE18177D03D700BBF7AE /* Kdb4Entry+KVOAdditions.m in Sources */, 4C52A244177D7B9F0000D88F /* HNHScrollView.m in Sources */, 4C3E1CC0177DEFB3003BD9BD /* StringField+Undo.m in Sources */, - 4C0D9B37177F84D700D0857C /* HNHSecureTextView.m in Sources */, - 4C0D9B3A177F867100D0857C /* HNHSecureLayoutManager.m in Sources */, 4CC7EA1B17807E7E0089D4F3 /* HNHRoundendTextFieldCellHelper.m in Sources */, 4CC672791781D0C0006DEDCF /* KdbGroup+MPAdditions.m in Sources */, 4CC6727C1781D0D2006DEDCF /* KdbEntry+MPAdditions.m in Sources */, @@ -1541,6 +1534,7 @@ 4CF1F0CA1786B37900CD920E /* NSData+Gzip.m in Sources */, 4C3666411787327E00B249F1 /* MPDocument+Attachments.m in Sources */, 4C16BA6217879A3C002B42BD /* MPPasswordStringFormatter.m in Sources */, + 4CD6C5AE1789FDE6000891F6 /* HNHRoundedSecureTextField.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MacPass/Base.lproj/PasswordInputView.xib b/MacPass/Base.lproj/PasswordInputView.xib index fead723c..c12b721e 100644 --- a/MacPass/Base.lproj/PasswordInputView.xib +++ b/MacPass/Base.lproj/PasswordInputView.xib @@ -20,6 +20,8 @@ NSImageView NSPathCell NSPathControl + NSSecureTextField + NSSecureTextFieldCell NSTextField NSTextFieldCell @@ -44,26 +46,57 @@ 268 - + 268 - {{163, 124}, {191, 22}} + {{318, 132}, {61, 18}} - _NS:9 YES - - -1804599231 - 272630784 - + + -2080374784 + 268435456 + Check LucidaGrande 13 1044 _NS:9 - + + 1211912448 + 2 + + NSImage + NSSwitch + + + NSSwitch + + + + 200 + 25 + + NO + + + + 268 + {{121, 130}, {191, 22}} + + + + _NS:9 + YES + + 342884416 + 272630848 + + + _NS:9 + YES 6 @@ -83,13 +116,16 @@ MAA + + NSAllRomanInputSourcesLocaleIdentifier + NO 268 - {{202, 176}, {113, 17}} + {{160, 160}, {113, 17}} @@ -131,7 +167,7 @@ NeXT Encapsulated PostScript v1.2 pasteboard type NeXT TIFF v4.0 pasteboard type - {{235, 201}, {48, 48}} + {{193, 185}, {48, 48}} @@ -160,7 +196,7 @@ Apple URL pasteboard type NSFilenamesPboardType - {{160, 95}, {197, 22}} + {{118, 101}, {197, 22}} @@ -185,10 +221,10 @@ 268 - {{94, 127}, {64, 17}} + {{52, 132}, {64, 17}} - + _NS:1535 YES @@ -206,7 +242,7 @@ 268 - {{112, 100}, {46, 17}} + {{70, 105}, {46, 17}} @@ -227,7 +263,7 @@ 268 - {{277, 51}, {83, 32}} + {{235, 57}, {83, 32}} _NS:9 @@ -250,7 +286,7 @@ NO - {517, 269} + {434, 282} @@ -317,12 +353,12 @@ 295 - - passwordTextField - - + + toggleDisplayType: + + - 337 + 407 @@ -355,7 +391,39 @@ 1 - + + + 10 + 0 + + 10 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + 3 0 @@ -367,25 +435,9 @@ 1000 - 9 - 40 - 3 - - - - 6 - 0 - - 6 - 1 - - 0.0 - - 1000 - 6 24 - 2 + 3 @@ -403,6 +455,22 @@ 40 3 + + + 9 + 0 + + 9 + 1 + + 0.0 + + 1000 + + 6 + 24 + 2 + 9 @@ -435,23 +503,7 @@ 40 3 - - - 3 - 0 - - 4 - 1 - - 8 - - 1000 - - 6 - 24 - 3 - - + 5 0 @@ -467,12 +519,12 @@ 24 3 - - - 9 + + + 6 0 - - 9 + + 6 1 0.0 @@ -483,7 +535,23 @@ 24 2 - + + + 3 + 0 + + 4 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + 3 0 @@ -495,31 +563,15 @@ 1000 - 9 - 40 + 6 + 24 3 - - - 3 - 0 - - 4 - 1 - - 30 - - 1000 - - 9 - 40 - 3 - - - + + 9 0 - + 9 1 @@ -527,28 +579,44 @@ 1000 - 9 - 40 + 6 + 24 2 - - - 10 + + + 3 0 - - 10 + + 4 1 - - 0.0 + + 8 1000 - 9 - 40 - 2 + 6 + 24 + 3 - - + + + 5 + 0 + + 6 + 1 + + 8 + + 1000 + + 6 + 24 + 3 + + + 6 0 @@ -564,7 +632,7 @@ 2 - + 5 0 @@ -579,28 +647,28 @@ 24 2 - - - 5 + + + 10 0 - - 6 + + 10 1 - - 8 + + 0.0 1000 - 6 - 24 - 3 + 9 + 40 + 2 - + - 11 + 3 0 - 11 + 3 1 0.0 @@ -611,12 +679,12 @@ 24 2 - + - 10 + 11 0 - - 10 + + 11 1 0.0 @@ -643,13 +711,14 @@ 40 3 - - + - + + - + + @@ -715,26 +784,6 @@ - - 252 - - - - - 254 - - - - - 255 - - - - - 256 - - - 262 @@ -814,17 +863,12 @@ - 290 - - - - - 313 - + 338 + - - - + + + 7 0 @@ -834,67 +878,115 @@ 191 1000 - - 3 - 9 + + 9 + 40 1 - 314 - - + 339 + + - 325 - + 367 + - 326 + 373 - 327 - + 378 + - 328 - + 379 + - 330 - - - - - 331 - - - - - 333 - - - - - 334 + 386 - 335 - + 389 + + + + + 390 + - 336 - + 391 + + + + + 392 + + + + + 393 + + + + + 396 + + + + + 398 + + + + + 400 + + + + + 401 + + + + + 402 + + + + + 403 + + + + + + + + 404 + + + + + 405 + + + + + 406 + @@ -903,25 +995,27 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - + - - - - + - - - - - + + + + + + + + + - - + + + @@ -936,10 +1030,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin @@ -954,43 +1044,63 @@ 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 - HNHRoundedSecureTextFieldCell - 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 - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin + HNHRoundedSecureTextField + + + + + 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 + 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 + com.apple.InterfaceBuilder.CocoaPlugin - 337 + 407 - HNHRoundedSecureTextFieldCell - NSTextFieldCell + HNHRoundedSecureTextField + NSSecureTextField + + toggleDisplayType: + id + + + toggleDisplayType: + + toggleDisplayType: + id + + IBProjectSource - ./Classes/HNHRoundedSecureTextFieldCell.h + ./Classes/HNHRoundedSecureTextField.h @@ -1058,10 +1168,10 @@ IBCocoaFramework YES 3 - - 02_MessageBoxWarningTemplate - {128, 128} - + + {128, 128} + {15, 15} + YES diff --git a/MacPass/DatabaseSettingsWindow.xib b/MacPass/DatabaseSettingsWindow.xib index 91788c13..d7559d2b 100644 --- a/MacPass/DatabaseSettingsWindow.xib +++ b/MacPass/DatabaseSettingsWindow.xib @@ -69,6 +69,7 @@ {{384, 13}, {69, 32}} + _NS:9 YES @@ -3308,12 +3309,12 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + HNHRoundedTextField com.apple.InterfaceBuilder.CocoaPlugin - HNHRoundedSecureTextFieldCell com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -3390,11 +3391,11 @@ - HNHRoundedSecureTextFieldCell - NSTextFieldCell + HNHRoundedTextField + NSTextField IBProjectSource - ./Classes/HNHRoundedSecureTextFieldCell.h + ./Classes/HNHRoundedTextField.h @@ -3496,24 +3497,6 @@ ./Classes/NSLayoutConstraint.h - - NSTextView - - orderFrontSharingServicePicker: - id - - - orderFrontSharingServicePicker: - - orderFrontSharingServicePicker: - id - - - - IBProjectSource - ./Classes/NSTextView.h - - 0 diff --git a/MacPass/MPPasswordInputController.m b/MacPass/MPPasswordInputController.m index 21912454..51c0bcfc 100644 --- a/MacPass/MPPasswordInputController.m +++ b/MacPass/MPPasswordInputController.m @@ -44,7 +44,10 @@ // show Warnign if read-only mode! [self _reset]; } +#pragma mark NSTextViewDelegate +#pragma mark - +#pragma mark Private - (IBAction)_decrypt:(id)sender { id windowController = [[[self view] window] windowController]; MPDocument *document = [windowController document]; @@ -69,7 +72,6 @@ } } } - - (void)_reset { [self.passwordTextField setStringValue:@""]; [self.keyPathControl setURL:nil]; diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist index 92ec2036..876b7e0b 100644 --- a/MacPass/MacPass-Info.plist +++ b/MacPass/MacPass-Info.plist @@ -48,7 +48,7 @@ CFBundleSignature ???? CFBundleVersion - 2155 + 2238 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright