Re: NSTimers and sleeping mac's
Re: NSTimers and sleeping mac's
- Subject: Re: NSTimers and sleeping mac's
- From: Sherm Pendley <email@hidden>
- Date: Thu, 26 Jul 2007 18:04:54 -0400
On Jul 26, 2007, at 5:46 PM, Aaron Wallis wrote:
I have an application that uses NSTimers to schedule frequent
actions on behalf of the user. its not something that you would put
into a cron, cause the timers are reset when the users take actions
etc etc etc.
However, I've been having some issues lately with writing a new
version of the application. when I put my mac to sleep, and then
wake it up, the NStimers aren't firing.
Does anyone know how to get the application to detect that the
computer has awoken, and run a method or something like that?
NSWorkspace fires NSWorkspaceDidWakeNotification and
NSWorkspaceWillSleepNotification notifications. There are no
corresponding "WillWake" or "DidSleep" notifications, for what I hope
are pretty obviously reasons. :-)
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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