On Sep 15, 2013, at 10:50 AM, Marcel Weiher <marcel.wei...@gmail.com> wrote:
> On Sep 15, 2013, at 17:04 , Kevin Meaney <k...@yvs.eu.com> wrote:
>> On 15 Sep 2013, at 15:30, Marcel Weiher <marcel.wei...@gmail.com> wrote:
>>> Do all the cleanup you want to do and then exit(0)  ?
>> 
>> I was doing exit(0) but after reading this discussion I thought it would be 
>> cleaner to do the CFRunLoopStop on the main thread. Back to exit(0) it is.
> 
> If you get queasy about exiting so abruptly, remind yourself that sudden 
> termination is a kill -9 … :-)

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.)


-- 
Greg Parker     gpar...@apple.com     Runtime Wrangler



_______________________________________________

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