How to make an application close when window is closed?
In a cocoa application, I read you are to add :
applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app {
return YES;
}
to your apps delegate. Where exaclty do I put it in the delegate because I'm getting errors.
MacBook Pro, OS X Mountain Lion (10.8.2), 2.3 GHz i5, 4GB RAM, OCZ 120GB SSD