• 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: Audiounit with Cocoa View steals 'space bar' events from Logic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Audiounit with Cocoa View steals 'space bar' events from Logic


  • Subject: re: Audiounit with Cocoa View steals 'space bar' events from Logic
  • From: Justin Carlson <email@hidden>
  • Date: Thu, 25 Sep 2008 18:21:36 -0500

I'm using the audiounit with cocoaview template that ships as part of the
core audio sdk. Although this works well, the resulting audiounit effects
will often intercept the 'space bar' when their windows are open in apps
like Logic and GarageBand. Obviously, this is annoying to the user since the
space bar normally toggles play & stop functions. The audiounit itself
requires some keyboard input, but will never use the 'space bar' for
anything.

Does anyone know how to modify the CocoaView to ignore space bar events?

Thanks
Mark

Hi Mark,

Many views you use may require customized event handling. Going off memory, the primary methods to override are:

- (BOOL)acceptsFirstMouse:(NSEvent *)event
- (BOOL)acceptsFirstResponder
- (BOOL)becomeFirstResponder
- (void)keyDown:(NSEvent *)event
- (void)mouseDown:(NSEvent *)event

J

P.S. If this doesn't work under the hosts you're testing with see if Stochaton (AU) handles this appropriately (scroll down). If it does, I must have the answer (someplace).
http://www.eigentoneresearch.com/Downloads.html

 _______________________________________________
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: deprecated function
  • Next by Date: AUEventListenerCreate / AUEventListenerAddEventType
  • Previous by thread: Audiounit with Cocoa View steals 'space bar' events from Logic
  • Next by thread: Playing Audio Backwards
  • Index(es):
    • Date
    • Thread