• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running a function at a certain time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Running a function at a certain time (From: Ben Mackin <email@hidden>)

  • Prev by Date: Re: Can't find mysql.h
  • Next by Date: Re:NSBezierPath alloc
  • Previous by thread: Running a function at a certain time
  • Next by thread: Re: Running a function at a certain time
  • Index(es):
    • Date
    • Thread