Re: Scheduling tasks
Re: Scheduling tasks
- Subject: Re: Scheduling tasks
- From: j o a r <email@hidden>
- Date: Fri, 15 Jul 2005 10:05:01 +0200
On 15 jul 2005, at 10.01, Rakka wrote:
I've looked at NSTimer, but it doesn't seem enough. (I may be wrong
though)
Would it be able to, for example, fire on particular days of the week?
I want to have the user to be able to configure which days it runs
on (Mon-Fri with checkboxes/popup list), and what time on those
days. See energy saver scheduling prefs to see the sort of thing I
want.
It doesn't have predefined methods to do exactly that, but you can of
course set it up to do just that yourself. It all comes down to
calculating the time interval between the time when you set up the
timer, and the time when it should fire. Once you know how long time
you want to wait before firing the timer, set it using:
+[NSTimer scheduledTimerWithTimeInterval:invocation:repeats:]
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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