Added MPToolbarButton to handle small control size in Toolbar

EntryEditView now gets displayed (without any functionality)
This commit is contained in:
michael starke
2013-02-26 20:57:25 +01:00
parent 2e8d35a432
commit 361b405825
22 changed files with 1274 additions and 436 deletions

View File

@@ -13,9 +13,9 @@
@property (assign) IBOutlet NSSecureTextField *passwordTextField;
- (IBAction)selectKeyFile:(id)sender;
- (IBAction)open:(id)sender;
- (void)showError;
- (IBAction)_selectKeyFile:(id)sender;
- (IBAction)_open:(id)sender;
- (void)_showError;
@end
@@ -34,22 +34,22 @@
return self.passwordTextField;
}
- (IBAction)selectKeyFile:(id)sender {
- (IBAction)_selectKeyFile:(id)sender {
}
- (IBAction)open:(id)sender {
- (IBAction)_open:(id)sender {
NSString *password = [self.passwordTextField stringValue];
[self.passwordTextField setStringValue:@""];
MPDatabaseDocument *document = [[MPDatabaseController defaultController] openDatabase:self.fileURL
password:password
keyfile:nil];
if(!document) {
[self showError];
[self _showError];
}
}
- (void)showError {
- (void)_showError {
NSLog(@"Something went wrong");
}
@end