Re: NSTimer in main NSRunLoop v. InstallEventLoopTimer

2008-09-10 Thread Wesley Smith
On Wed, Sep 10, 2008 at 8:04 AM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On Sep 10, 2008, at 4:19 AM, Wesley Smith wrote: > >> I'm trying to figure out how I can have my app run a timer that never >> suspends when the user interacts with menus and the like. > > You can use -[NSRunLoop addTimer:fo

Re: NSTimer in main NSRunLoop v. InstallEventLoopTimer

2008-09-10 Thread Ken Thomases
On Sep 10, 2008, at 4:19 AM, Wesley Smith wrote: I'm trying to figure out how I can have my app run a timer that never suspends when the user interacts with menus and the like. You can use -[NSRunLoop addTimer:forMode:] to schedule the timer on additional run-loop modes. You might want to u

NSTimer in main NSRunLoop v. InstallEventLoopTimer

2008-09-10 Thread Wesley Smith
Hi, I'm trying to figure out how I can have my app run a timer that never suspends when the user interacts with menus and the like. In Carbon, one can do: EventLoopRef mainLoop; EventLoopTimerUPP timerUPP; EventLoopTimerRef theTimer; mainLoop = GetMainEventLoop();