Re: Displaying dialog at shutdown
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