A word of advice on using AUParameterListener and AUEventListener with UI
A word of advice on using AUParameterListener and AUEventListener with UI
- Subject: A word of advice on using AUParameterListener and AUEventListener with UI
- From: Luke Bellandi <email@hidden>
- Date: Tue, 9 Nov 2004 12:20:52 -0800
For the best UI experience we recommend creating AUParameterListeners and AUEventListeners with
<x-tad-bigger>kCFRunLoopCommonModes</x-tad-bigger> as the argument to
"CFStringRef inRunLoopMode" in your AUEventListenerCreate(…) and AUParameterListenerCreate(…) calls. This way, drawing in your UI will not be stopped by modal panels being shown, or by events being tracked.
Also, if using NSTimers to trigger drawing in an AUCocoaView, be aware of available event loops that you can add your timers to (to provide a similar user experience as mentioned above for Carbon views). Here are some of the most commonly used modes:
NSDefaultRunLoopMode
NSModalPanelRunLoopMode
NSEventTrackingRunLoopMode
NSConnectionReplyMode
We suggest adding any timers you create (that manage UI or other relevant state) to be added to at least the first three of these modes.
You can find out more general information about runloops and their modes on http://developer.apple.com.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden