Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cancel application terminate on Logout/Shut Down



Hi list,

I had to subclass the NSApplication's -terminate method and have a hopefully minor problem:

When I receive replyToApplicationShouldTerminate:NO I want to notify the OS that the application will not quit. Otherwise on logout or shutdown after the 30 seconds timeout I get the info window that The shutdown/Logout has timed out because my application failed to quit.

Please note that I spend some time trying to use the delegate methods instead of subclassing the NSApplication class but I can not return the NSTerminateLater because the Application run loop is stalled and the application hangs. NSTerminateNow and NSTerminateCancel work fine, but that is not what I want. Why this happens is a long story and it is much harder to fix.

Thanks,
Andrei
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.