I found out that when a timer fires, no event is generated.
I suppose your timer limits the time that waitevents may wait?
You also need to make sure dostuff returns often enough, assuming
handleevents serves to keep the interface responsive.
Eric Schlegel wrote:
There's a better way: use QuitEventLoop( GetMainEventLoop() ) from
within your timer function. This will cause the ReceiveNextEvent call
to return immediately.
Yes, but then he has to call RunApplicationEventLoop and QuitEventLoop
once per loop iteration.
What if events are generated while the event loop is not run? Does the
main event queue persist in the meantime?
I think the dummy event approach is quite nice.
Jan E.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden