Re: registerPrioritySleepWakeInterest problems with shutdown event
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