Changed Inspector to dual tab view and removed Popups

This commit is contained in:
michael starke
2013-06-22 01:45:23 +02:00
parent 6c08f908a6
commit 84fdd1fb47
17 changed files with 2711 additions and 2487 deletions

View File

@@ -18,6 +18,7 @@
MPPasswordCharacterFlags _characterFlags;
}
@property (retain) NSString *password;
@property (retain) NSString *generatedPassword;
@property (assign) IBOutlet NSTextField *passwordTextField;
@property (assign) IBOutlet NSTextField *passwordLengthTextField;
@@ -36,6 +37,7 @@
- (IBAction)_generatePassword:(id)sender;
- (IBAction)_toggleCharacters:(id)sender;
- (IBAction)_usePassword:(id)sender;
- (IBAction)_cancel:(id)sender;
@end
@@ -89,6 +91,7 @@
}
- (IBAction)_usePassword:(id)sender {
self.generatedPassword = _password;
if([self.addPasswordToPasteboardButton state] == NSOnState) {
[[MPPasteBoardController defaultController] copyObjects:@[_password]];
}
@@ -96,6 +99,12 @@
[target performClose:nil];
}
- (IBAction)_cancel:(id)sender {
id target = [NSApp targetForAction:@selector(performClose:)];
[target performClose:nil];
}
- (void)setUseCustomString:(BOOL)useCustomString {
if(_useCustomString != useCustomString) {
_useCustomString = useCustomString;