Re: timers and event loops
Re: timers and event loops
- Subject: Re: timers and event loops
- From: Ondra Cada <email@hidden>
- Date: Tue, 29 Nov 2005 17:03:56 +0100
William,
On 29.11.2005, at 16:00, William Turner wrote:
I'm using an NSTimer to animate a scene in an NSOpenGLView. The
window contains a popup button and some other widgets. When the
popup button is pressed (exposing its menu), the animation stops.
This is true of any interaction with any of the widgets.
My suspicion is that the timer is not firing because the widgets
are interrupting the main run loop (on which the timer is registered).
Do I understand right the timer does not fire *whilst the menu is open*?
If so, naturally: the menu uses its own nested event loop.
I don't know whether it exploits NSRunLoop (in which case you could
make your timer to fire there as well easily) or whether it just
polls event in a tight loop -- given menus are driven by some blasted
Carbon code, I would rather suspect the latter, but I don't really know.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden