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

Re: Displaying dialog at shutdown


  • Subject: Re: Displaying dialog at shutdown
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 2 Jun 2010 09:22:19 -0700

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_______________________________________________

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

  • Follow-Ups:
    • Re: Re: Displaying dialog at shutdown
      • From: email@hidden
References: 
 >Displaying dialog at shutdown (From: email@hidden)

  • Prev by Date: Re: Binding SelectedText Background
  • Next by Date: Re: Spotlight-Style search menu
  • Previous by thread: Displaying dialog at shutdown
  • Next by thread: Re: Re: Displaying dialog at shutdown
  • Index(es):
    • Date
    • Thread