First running Version that used document based architecture. Search is broken.

This commit is contained in:
michael starke
2013-05-10 01:24:51 +02:00
parent 070467d106
commit c1110f7a4d
18 changed files with 92 additions and 439 deletions

View File

@@ -7,6 +7,7 @@
//
#import "MPPasswordInputController.h"
#import "MPDocumentWindowController.h"
#import "MPDocument.h"
#import "MPKeyfilePathControlDelegate.h"
@@ -46,15 +47,16 @@
}
- (IBAction)_decrypt:(id)sender {
MPDocument *document = [[NSDocumentController sharedDocumentController] currentDocument];
MPDocumentWindowController *windowController = (MPDocumentWindowController *)[[[self view] window] windowController];
MPDocument *document = [windowController document];
if(document) {
BOOL isOk = [document decryptWithPassword:[self.passwordTextField stringValue] keyFileURL:[self.keyPathControl URL]];
if( isOk) {
if(!isOk) {
[self _showError];
}
}
[self _reset];
// show entries
[windowController showEntries];
}
- (void)_reset {