Re: Running a function at a certain time
Re: Running a function at a certain time
- Subject: Re: Running a function at a certain time
- From: Dan Crevier <email@hidden>
- Date: Tue, 26 Feb 2002 16:33:31 -0800
On 2/26/2002 3:28 PM, "Ben Mackin" <email@hidden> wrote:
>
I have been looking up and down Apple's website for how to check the time,
>
and run a function at said time. I was looking at using cron, but that seems
>
to be only able to run scripts and such, not parts of an application. I
>
can't seem to figure out how to even have an function like this in cocoa.
Check out NSTimer.
>
In Carbon, it would be easy to throw something into the event loop, that
>
would poll for the time, and such. There has to be a way to do this in
>
cocoa, I just cant seem to find it.
In Carbon these days, you'd want to use an Carbon Event Timer.
Dan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.