Re: Schedule a Method
Re: Schedule a Method
- Subject: Re: Schedule a Method
- From: Andrew James <email@hidden>
- Date: Mon, 6 Aug 2007 22:44:54 +0930
Hi Jonathon,
It does not clearly state it in the class reference, but will
performSelector:withObject:afterDelay: keep counting down while the
machine is asleep, the problem im having with the current NSTimer is
that my application is to synchronise every 24hours etc.
But the obvious trouble is every time the machine sleeps for say 6
hours that 24 hours is delayed for 6 hours resulting in a incorrect
timer period
On 06/08/2007, at 10:32 PM, Jonathon Mah wrote:
Andrew,
On 2007-08-06, at 20:16, Andrew James wrote:
Is there a way to schedule a method to run in 24 hours or even
directly by date, by schedule i mean that it wont be delayed by
system sleep like NSTimer
Do you mean you want it called while the system is asleep?
Or maybe a -[NSObject performSelector:withObject:afterDelay:] will
do what you want.
Jonathon Mah
email@hidden
_______________________________________________
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