Added EntryViewController

Fixed issues with firstResponder in MainWindowController
This commit is contained in:
michael starke
2013-02-18 02:20:57 +01:00
parent eb1621b970
commit 94ec1ccde3
17 changed files with 448 additions and 354 deletions

View File

@@ -44,19 +44,7 @@
}
- (void)openDocument:(id)sender {
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
[openPanel setCanChooseDirectories:NO];
[openPanel setCanChooseFiles:YES];
[openPanel setCanCreateDirectories:NO];
[openPanel setAllowsMultipleSelection:NO];
[openPanel beginSheetModalForWindow:[self.mainWindowController window] completionHandler:^(NSInteger result){
if(result == NSFileHandlingPanelOKButton) {
NSURL *file = [[openPanel URLs] lastObject];
if(file) {
[self.mainWindowController presentPasswordInput:(NSURL *)file];
}
}
}];
[self.mainWindowController openDocument];
}