[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSTimer problem
From: |
Richard Frith-Macdonald |
Subject: |
Re: NSTimer problem |
Date: |
Sun, 1 Jul 2001 20:40:46 +0100 |
On Sunday, July 1, 2001, at 06:08 PM, Björn Gohla wrote:
i am having a bit of trouble using the NSTimer. it seems that the timer
fires
only if an event occurs after the specified interval has expired, like a
movement of the mouse pointer or the depression of a key. having scanned
through gnustep-base sources i suspect this has to do with the way
timers are
hooked into the runloop. is this a known problem or am i totally wrong
about
this.
I think/hope you are totally wrong.
Certainly, timers normally work fine - see nstimer.m in base/Testing for
an example
of timers firing without other events in the runloop.
That's not to say that there can't be a bug of course, but if so, it's
certainly
not a known one, and timers are working well in a lot of production code.
Most likely causes of problems are ...
1. forgetting to add a timer to the runloop
2. running the loop in a mode other than the one the timer was added for
3. not running the loop to which the timer was added
- NSTimer problem, Björn Gohla, 2001/07/01
- Re: NSTimer problem,
Richard Frith-Macdonald <=