diff --git a/Cocoa/AppDelegate.m b/Cocoa/AppDelegate.m index a03b062..ff98f3f 100644 --- a/Cocoa/AppDelegate.m +++ b/Cocoa/AppDelegate.m @@ -53,11 +53,10 @@ [_preferencesWindow makeKeyAndOrderFront:self]; } -- (void)applicationDidBecomeActive:(NSNotification *)notification +- (BOOL)applicationOpenUntitledFile:(NSApplication *)sender { - NSDocumentController *controller = [NSDocumentController sharedDocumentController]; - if (![[controller documents] count]) { - [[NSDocumentController sharedDocumentController] openDocument:self]; - } + [[NSDocumentController sharedDocumentController] openDocument:self]; + return YES; } + @end