On Jun 2, 2010, at 9:13 AM, [email protected] 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
