Re: Re: Timers in a Foundation Tool
Re: Re: Timers in a Foundation Tool
- Subject: Re: Re: Timers in a Foundation Tool
- From: <email@hidden>
- Date: Sat, 5 Jul 2003 6:02:32 -0400
>
For the timer action selector, you pass a function
pointer. It is
>
important to realize that functions != methods.
Selectors are
>
associated with a class or an object, and timers
must have a target.
However, you can simulate a function timer
(without even the need for an NSRunLoop) by
using pthreads and sleep(). But then you can
possibly introduce threading issues (it's good for
small stuff though).
_______________________________________________
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.