[Xcode] How to quit the application when the window closes
If you want an application to quit (terminate) when the window is closed, you can do this:
-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication
*)theApplication
{
return YES;
}
沒有留言:
張貼留言