Re: Scheduling tasks
Re: Scheduling tasks
- Subject: Re: Scheduling tasks
- From: Rakka <email@hidden>
- Date: Fri, 15 Jul 2005 18:59:47 +1000
On 15/07/2005, at 6:05 PM, j o a r wrote:
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:]
I'll take your advice. Thanks.
How would I find out how much time before, e.g 4pm next Tuesday?
Sorry if this sounds really simple. I'm new to all this.
Regards,
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