Quit cocoa app on window close
Add this method to your NSWindowController :
-(BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
return YES;
}
Add this method to your NSWindowController :
-(BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
return YES;
}
If you enjoyed this post, please follow us on twitter or subscribe to our feed!