Why isn't applicationShouldOpenUntitledFile being called?
问题 I added a applicationShouldOpenUntitledFile method to my application delegate, returning NO as Apple's documentation specifies. However, I'm still getting a new document on startup. What's wrong? @implementation AppDelegate @synthesize window; - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { NSLog( @"This is being called" ); } - (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender { NSLog( @"This never is" ); return NO; } @end 回答1: You're running Lion. When