• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cancel application terminate on Logout/Shut Down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Newb Question re NSUserDefaults and Ints
  • Next by Date: Re: Newb Question re NSUserDefaults and Ints
  • Previous by thread: Re: Newb Question re NSUserDefaults and Ints
  • Next by thread: -dataWithPDFInsideRect: unsafe within -drawRect:?
  • Index(es):
    • Date
    • Thread