Re: cocoa app is cancelling shutdown
Re: cocoa app is cancelling shutdown
- Subject: Re: cocoa app is cancelling shutdown
- From: Ken Thomases <email@hidden>
- Date: Thu, 22 Jul 2010 09:13:20 -0500
On Jul 21, 2010, at 5:27 AM, Elizabeth Kellner wrote:
> First is that app in question is a cocoa app that previously was a
> command line app, and so it is *not* calling NSApplicationMain. It
> starts its own run loop. Although I'm calling CFRunLoopRunInMode in
> the loop, could there be some other something that I need to do in the
> run loop that would potentially cause a shutdown to cancel?
I think this is the problem. A run loop is not an event loop. An event loop is built around a run loop, but is more than that.
You should probably use -[NSApplication run] instead. Read the class overview of NSApplication for some additional details.
Regards,
Ken
_______________________________________________
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