• 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
A word of advice on using AUParameterListener and AUEventListener with UI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Coreaudio-api Digest, Vol 1, Issue 66
  • Next by Date: Re: Digi MBox not showing up in device list
  • Previous by thread: Re: Questions about HAL API.
  • Next by thread: A few quick questions
  • Index(es):
    • Date
    • Thread