• 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: Re: Displaying dialog at shutdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Displaying dialog at shutdown


  • Subject: Re: Re: Displaying dialog at shutdown
  • From: email@hidden
  • Date: Wed, 02 Jun 2010 16:52:24 +0000

On Jun 2, 2010 11:22am, Jens Alfke <email@hidden> wrote:

On Jun 2, 2010, at 9:13 AM, email@hidden wrote:

I can use an AppleScript to force the app to quit and when doing that, I see the dialog every time, but if I actually restart the computer, I only see the dialog, maybe 1 out of 5 times.

This is on 10.6? Read the system docs about “Sudden Termination”. This is an OS optimization that quits apps by simply killing the process unless the app registers that it has specific things it needs to do upon quit. Now, I think that registering a custom -applicationShouldTerminate: handler would disable sudden termination, but I haven't actually worked with this feature so I don't know for sure; and this seems like the most likely thing to me.


—Jens



Yes, its for 10.6. I'm looking at the “Sudden Termination” as I write this. Thx
_______________________________________________

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: 
 >Re: Displaying dialog at shutdown (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Spotlight-Style search menu
  • Next by Date: Re: ANN: Syntax highlighting editor view
  • Previous by thread: Re: Displaying dialog at shutdown
  • Next by thread: Delayed -dealloc occurs on worker thread if object is "working". How?
  • Index(es):
    • Date
    • Thread