• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa app is cancelling shutdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >cocoa app is cancelling shutdown (From: Elizabeth Kellner <email@hidden>)

  • Prev by Date: Re: Discard all drawing in a UIView
  • Next by Date: Re: Knowing how a Text Editing Session ended
  • Previous by thread: Re: cocoa app is cancelling shutdown
  • Next by thread: Saving numbered list as web archive causes indenting problem
  • Index(es):
    • Date
    • Thread