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