re: Audiounit with Cocoa View steals 'space bar' events from Logic
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).
|
_______________________________________________
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