Re: Adding a Timer to a Thread

2009-05-26 Thread Andreas Grosam
On May 26, 2009, at 8:53 PM, Ken Thomases wrote: On May 26, 2009, at 1:27 PM, Jean-Daniel Dupas wrote: Le 26 mai 09 à 20:15, Andreas Grosam a écrit : What would you suggest is the preferred way to add a timer to a different running thread? Normally, I would use: NSRunLoop *runLoop

Re: Adding a Timer to a Thread

2009-05-26 Thread Ken Thomases
On May 26, 2009, at 1:27 PM, Jean-Daniel Dupas wrote: Le 26 mai 09 à 20:15, Andreas Grosam a écrit : What would you suggest is the preferred way to add a timer to a different running thread? Normally, I would use: NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; [runLoop addTimer:a

Re: Adding a Timer to a Thread

2009-05-26 Thread Jean-Daniel Dupas
Le 26 mai 09 à 20:15, Andreas Grosam a écrit : What would you suggest is the preferred way to add a timer to a different running thread? Normally, I would use: NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; [runLoop addTimer:aTimer forMode:NSDefaultRunLoopMode]; However, this r

Adding a Timer to a Thread

2009-05-26 Thread Andreas Grosam
What would you suggest is the preferred way to add a timer to a different running thread? Normally, I would use: NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; [runLoop addTimer:aTimer forMode:NSDefaultRunLoopMode]; However, this requires that it will be invoked from the context