Re: RunLoop in Helper Tool
Re: RunLoop in Helper Tool
- Subject: Re: RunLoop in Helper Tool
- From: Uli Kusterer <email@hidden>
- Date: Mon, 16 Sep 2013 09:12:39 +0200
On 16 Sep 2013, at 01:10, Greg Parker <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden