Cancel application terminate on Logout/Shut Down
Cancel application terminate on Logout/Shut Down
- Subject: Cancel application terminate on Logout/Shut Down
- From: Andrei Kolev <email@hidden>
- Date: Sat, 30 Aug 2008 04:02:20 +0300
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:
This email sent to email@hidden