diff --git a/MacPass/DocumentWindow.xib b/MacPass/DocumentWindow.xib
index b36c5d14..a5c393f2 100644
--- a/MacPass/DocumentWindow.xib
+++ b/MacPass/DocumentWindow.xib
@@ -38,7 +38,7 @@
- {727, 449}
+ {727, 548}
- {{0, 0}, {1680, 1028}}
+ {{0, 0}, {2560, 1418}}
{400, 422}
{10000000000000, 10000000000000}
+ NO
+ 22
YES
@@ -198,15 +200,15 @@
-
-
- 5
+
+
+ 4
0
-
- 5
+
+ 4
1
- 0.0
+ 22
1000
@@ -214,12 +216,12 @@
29
3
-
+
- 4
+ 5
0
- 4
+ 5
1
0.0
@@ -302,13 +304,13 @@
- 679
-
+ 680
+
- 680
-
+ 682
+
@@ -322,11 +324,11 @@
com.apple.InterfaceBuilder.CocoaPlugin
{{357, 418}, {480, 270}}
-
+
-
+
com.apple.InterfaceBuilder.CocoaPlugin
@@ -336,14 +338,14 @@
com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
- com.apple.InterfaceBuilder.CocoaPlugin
com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
- 680
+ 682
diff --git a/MacPass/InspectorTabView.xib b/MacPass/InspectorTabView.xib
index e0b5c3af..82b0cd24 100644
--- a/MacPass/InspectorTabView.xib
+++ b/MacPass/InspectorTabView.xib
@@ -52,7 +52,7 @@
268
- {{67, 520}, {144, 20}}
+ {{48, 520}, {144, 20}}
@@ -164,9 +164,10 @@
12
- {278, 513}
+ {240, 513}
+
_NS:9
@@ -199,7 +200,7 @@
268
- {{86, 471}, {172, 22}}
+ {{86, 471}, {134, 22}}
@@ -255,7 +256,7 @@
268
- {{86, 346}, {133, 22}}
+ {{86, 346}, {94, 22}}
@@ -280,7 +281,7 @@
268
- {{86, 439}, {172, 22}}
+ {{86, 439}, {134, 22}}
@@ -302,7 +303,7 @@
268
- {{86, 407}, {133, 22}}
+ {{86, 407}, {94, 22}}
@@ -345,7 +346,7 @@
268
- {{227, 405}, {31, 25}}
+ {{188, 407}, {32, 25}}
@@ -395,9 +396,10 @@
268
- {{227, 344}, {31, 25}}
+ {{188, 344}, {32, 25}}
+
_NS:22
YES
@@ -420,8 +422,33 @@
NO
+
+
+ 268
+ {{86, 314}, {134, 25}}
+
+
+
+ _NS:22
+ YES
+
+ -2080374784
+ 134217728
+ Generate Password
+
+ _NS:22
+
+ -2038153216
+ 163
+
+
+ 400
+ 75
+
+ NO
+
- {278, 513}
+ {240, 513}
@@ -437,7 +464,7 @@
256
- {278, 513}
+ {240, 513}
_NS:28
@@ -460,7 +487,7 @@
- {278, 612}
+ {240, 612}
@@ -624,8 +651,8 @@
1000
- 8
- 29
+ 9
+ 40
3
@@ -640,8 +667,8 @@
1000
- 8
- 29
+ 9
+ 40
3
@@ -846,22 +873,6 @@
57
-
-
- 6
- 0
-
- 6
- 1
-
- 20
-
- 1000
-
- 8
- 29
- 3
-
5
@@ -878,6 +889,22 @@
24
3
+
+
+ 6
+ 0
+
+ 6
+ 1
+
+ 20
+
+ 1000
+
+ 8
+ 29
+ 3
+
3
@@ -894,7 +921,7 @@
24
2
-
+
5
0
@@ -910,7 +937,23 @@
24
3
-
+
+
+ 3
+ 0
+
+ 4
+ 1
+
+ 8
+
+ 1000
+
+ 6
+ 24
+ 3
+
+
6
0
@@ -926,12 +969,12 @@
29
3
-
+
- 3
+ 5
0
-
- 3
+
+ 5
1
0.0
@@ -942,6 +985,54 @@
24
2
+
+
+ 6
+ 1
+
+ 6
+ 1
+
+ 20
+
+ 1000
+
+ 9
+ 40
+ 3
+
+
+
+ 5
+ 0
+
+ 5
+ 1
+
+ 0.0
+
+ 1000
+
+ 9
+ 40
+ 2
+
+
+
+ 3
+ 0
+
+ 4
+ 1
+
+ 8
+
+ 1000
+
+ 6
+ 24
+ 3
+
3
@@ -970,8 +1061,8 @@
1000
- 6
- 24
+ 9
+ 40
3
@@ -986,8 +1077,8 @@
1000
- 8
- 29
+ 9
+ 40
3
@@ -1236,10 +1327,11 @@
-
+
+
@@ -1515,6 +1607,22 @@
+
+
+ 7
+ 0
+
+ 0
+ 1
+
+ 32
+
+ 1000
+
+ 3
+ 9
+ 1
+
@@ -1523,21 +1631,6 @@
-
- 296
-
-
-
-
- 298
-
-
-
-
- 301
-
-
-
304
@@ -1584,21 +1677,6 @@
-
- 331
-
-
-
-
- 332
-
-
-
-
- 333
-
-
-
334
@@ -1639,6 +1717,74 @@
+
+ 409
+
+
+
+
+ 412
+
+
+
+
+ 413
+
+
+
+
+ 414
+
+
+
+
+ 415
+
+
+
+
+ 417
+
+
+
+
+ 421
+
+
+
+
+
+
+
+ 422
+
+
+
+
+ 423
+
+
+
+
+ 424
+
+
+
+
+ 331
+
+
+
+
+ 418
+
+
+
+
+ 434
+
+
+
@@ -1716,12 +1862,12 @@
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
@@ -1733,10 +1879,21 @@
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
@@ -1744,7 +1901,7 @@
MPShadowBox
com.apple.InterfaceBuilder.CocoaPlugin
MPShadowBox
-
+
@@ -1763,12 +1920,16 @@
-
-
-
+
+
+
+
+
+
+
-
+
com.apple.InterfaceBuilder.CocoaPlugin
MPPopupImageView
@@ -1784,7 +1945,7 @@
- 404
+ 434
@@ -1808,11 +1969,11 @@
NSTextField
NSButton
NSSecureTextField
+ NSButton
NSSegmentedControl
NSTabView
NSTextField
NSTextField
- NSButton
NSTextField
@@ -1836,6 +1997,10 @@
passwordTextField
NSSecureTextField
+
+ showPasswordCreator
+ NSButton
+
tabControl
NSSegmentedControl
@@ -1852,10 +2017,6 @@
titleTextField
NSTextField
-
- togglePasswordDisplayButton
- NSButton
-
usernameTextField
NSTextField
diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m
index 07d5e54d..82e327d1 100644
--- a/MacPass/MPDocumentWindowController.m
+++ b/MacPass/MPDocumentWindowController.m
@@ -18,7 +18,7 @@
#import "DMSplitView.h"
@interface MPDocumentWindowController () {
- @private
+@private
BOOL _needsDecryption;
}
@@ -102,7 +102,7 @@
[self _setOutlineVisible:NO];
MPDocument *document = [self document];
if(!document.isDecrypted) {
- [self showPasswordInput];
+ [self showPasswordInput];
}
else {
[self editPassword:nil];
@@ -160,7 +160,7 @@
}
- (void)toggleOutlineView:(id)sender {
-
+
}
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
@@ -186,10 +186,11 @@
- (void)showPasswordInput {
- if(!self.passwordInputController) {
- self.passwordInputController = [[[MPPasswordInputController alloc] init] autorelease];
- }
- [self _setContentViewController:self.passwordInputController];
+ if(!self.passwordInputController) {
+ self.passwordInputController = [[[MPPasswordInputController alloc] init] autorelease];
+ }
+ [self _setContentViewController:self.passwordInputController];
+ [self.passwordInputController requestPassword];
}
- (void)clearOutlineSelection:(id)sender {
diff --git a/MacPass/MPPasswordInputController.h b/MacPass/MPPasswordInputController.h
index 14608597..732fff81 100644
--- a/MacPass/MPPasswordInputController.h
+++ b/MacPass/MPPasswordInputController.h
@@ -10,4 +10,6 @@
@interface MPPasswordInputController : MPViewController
+- (void)requestPassword;
+
@end
diff --git a/MacPass/MPPasswordInputController.m b/MacPass/MPPasswordInputController.m
index 69e2e794..183b6216 100644
--- a/MacPass/MPPasswordInputController.m
+++ b/MacPass/MPPasswordInputController.m
@@ -46,6 +46,10 @@
return self.passwordTextField;
}
+- (void)requestPassword {
+ [self _reset];
+}
+
- (IBAction)_decrypt:(id)sender {
MPDocumentWindowController *windowController = (MPDocumentWindowController *)[[[self view] window] windowController];
MPDocument *document = [windowController document];
@@ -54,9 +58,10 @@
if(!isOk) {
[self _showError];
}
+ else {
+ [windowController showEntries];
+ }
}
- [self _reset];
- [windowController showEntries];
}
- (void)_reset {
diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist
index 4cf5eb54..ef5f00f2 100644
--- a/MacPass/MacPass-Info.plist
+++ b/MacPass/MacPass-Info.plist
@@ -46,7 +46,7 @@
CFBundleSignature
????
CFBundleVersion
- 726
+ 72F
LSMinimumSystemVersion
${MACOSX_DEPLOYMENT_TARGET}
NSHumanReadableCopyright
diff --git a/MacPass/PasswordInputView.xib b/MacPass/PasswordInputView.xib
index 7bc03951..d2b7bb3b 100644
--- a/MacPass/PasswordInputView.xib
+++ b/MacPass/PasswordInputView.xib
@@ -51,6 +51,7 @@
268
{{96, 175}, {184, 17}}
+
_NS:1535
YES
@@ -99,6 +100,7 @@
{{157, 200}, {48, 48}}
+
_NS:9
YES
@@ -123,6 +125,7 @@
268
{{127, 50}, {82, 32}}
+
_NS:9
YES
@@ -151,6 +154,7 @@
{{83, 94}, {197, 22}}
+
_NS:9
YES
@@ -175,6 +179,7 @@
268
{{86, 123}, {191, 22}}
+
_NS:9
YES
@@ -212,6 +217,7 @@
268
{{17, 126}, {64, 17}}
+
_NS:1535
YES
@@ -232,6 +238,7 @@
268
{{35, 99}, {46, 17}}
+
_NS:1535
YES
@@ -252,6 +259,7 @@
268
{{209, 50}, {74, 32}}
+
_NS:9
{250, 250}
YES
@@ -274,6 +282,7 @@
{362, 268}
+
{751, 750}
NSView
@@ -1087,7 +1096,69 @@
295
-
+
+
+
+ MPPasswordInputController
+ MPViewController
+
+ _decrypt:
+ id
+
+
+ _decrypt:
+
+ _decrypt:
+ id
+
+
+
+ NSImageView
+ NSTextField
+ NSPathControl
+ NSSecureTextField
+
+
+
+ errorImageView
+ NSImageView
+
+
+ errorInfoTextField
+ NSTextField
+
+
+ keyPathControl
+ NSPathControl
+
+
+ passwordTextField
+ NSSecureTextField
+
+
+
+ IBProjectSource
+ ./Classes/MPPasswordInputController.h
+
+
+
+ MPViewController
+ NSViewController
+
+ IBProjectSource
+ ./Classes/MPViewController.h
+
+
+
+ NSLayoutConstraint
+ NSObject
+
+ IBProjectSource
+ ./Classes/NSLayoutConstraint.h
+
+
+
+
0
IBCocoaFramework
YES