On 16 Sep 2013, at 01:10, Greg Parker <gpar...@apple.com> wrote:
> And of course every Cocoa app halts by calling exit(). NSApplicationMain() 
> never returns. (I'm pretty sure it doesn't attempt to stop the main run loop, 
> either.)

 It does go and close all documents and send 
NSApplicationWillTerminateNotification and ask the app delegate if it’s OK to 
quit though. So it’s a tad more graceful than just exit() alone. But yeah, 
NSApplicationMain doesn’t return, and that silly autorelease pool most people 
put in main() these days never gets released, just accumulating any objects 
that get autoreleased on the main thread without any other pool in place.

 All things to keep in mind.

Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to