Timer and RunLoop question

2009-09-29 Thread Gabriel Zachmann
I've got an app that handles keyboard input (-keyDown:) and has a repeating timer that causes the runloop to call repeatedly a method in my app (called timerFireMethod:). Could it happen that keyDown: and timerFireMethod: are running at the same time? In other words: does the runloop

Re: Timer and RunLoop question

2009-09-29 Thread Wim Lewis
On Sep 29, 2009, at 2:09 PM, Gabriel Zachmann wrote: I've got an app that handles keyboard input (-keyDown:) and has a repeating timer that causes the runloop to call repeatedly a method in my app (called timerFireMethod:). Could it happen that keyDown: and timerFireMethod: are running at

Re: Timer and RunLoop question

2009-09-29 Thread Mike Abdullah
On 29 Sep 2009, at 22:30, Wim Lewis wrote: And what about two timers, i.e., what happens, if one of them fires while the method associated with the other one is till executing? It won't be able to fire until control returns to the runloop in some way. Which is why NSTime only guarantees