• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: timers and event loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: timers and event loops
      • From: Eric Schlegel <email@hidden>
References: 
 >timers and event loops (From: William Turner <email@hidden>)

  • Prev by Date: Re: timers and event loops
  • Next by Date: Re: Binding date formatters to user's locale date format preferences?
  • Previous by thread: Re: timers and event loops
  • Next by thread: Re: timers and event loops
  • Index(es):
    • Date
    • Thread