• 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
Re: registerPrioritySleepWakeInterest problems with shutdown event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: registerPrioritySleepWakeInterest problems with shutdown event


  • Subject: Re: registerPrioritySleepWakeInterest problems with shutdown event
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 26 Nov 2005 15:13:06 +0100

Am 26.11.2005 um 06:12 schrieb Herbert:
So I don't know really if the event is being caught, or the app is killed before it gets a chance to do anything.

I need this to do some housekeeping before shutdown.

You could just write some testing code to figure this out:

Write the current time to a file on disk. When you start up again you can just check whether that file exists and contains the time of the last shutdown. If it does, your code got called.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >registerPrioritySleepWakeInterest problems with shutdown event (From: Herbert <email@hidden>)

  • Prev by Date: Re: SMySQL releasing the Results or Am I misunderstanding Autorelease?
  • Next by Date: Re: Subversion and XCode
  • Previous by thread: registerPrioritySleepWakeInterest problems with shutdown event
  • Next by thread: SMySQL releasing the Results or Am I misunderstanding Autorelease?
  • Index(es):
    • Date
    • Thread