mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-02 23:03:00 +02:00
Improved open-dialog behavior in Cocoa
This commit is contained in:
@@ -53,11 +53,10 @@
|
|||||||
[_preferencesWindow makeKeyAndOrderFront:self];
|
[_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
|
@end
|
||||||
|
Reference in New Issue
Block a user