Re: AU plugin doesn't receive keyboard events with Cocoa GUI
Re: AU plugin doesn't receive keyboard events with Cocoa GUI
- Subject: Re: AU plugin doesn't receive keyboard events with Cocoa GUI
- From: Paul Davis <email@hidden>
- Date: Sun, 05 Aug 2012 13:33:53 -0400
On Sun, Aug 5, 2012 at 7:31 AM, Vojtěch Meluzín
<email@hidden> wrote:
Hi,
my AudioUnit plugins (and actually other plugin formats as well) do not receive keyboard events, when they use Cocoa GUI (with Carbon it is probably the same thing, I'm just not sure). Interesting thing is that this happens even in popup windows the plugin may display and it happens only in some hosts, so pure chaos... The plugin simply doesn't receive the NSView events, seems like the host intercepts the events and doesn't let them pass. Any idea how to solve this? On Windows every handler returns boolean "if it processes the message", seems there is nothing like this on Mac OS X, or is it?
this is largely up to the host. the host will ALWAYS receive them first, no matter what (because events go to NSWindows before they go to any NSView within the window, and the host owns the NSWindow).
some hosts (mine, for example), provide a way to force *all* key events to be delivered to the plugin's NSView. others do not. many hosts will steal some set of key events for their own use unless told not to (e.g. so that pressing the space bar more or less always has the same effect on transport, regardless of where key focus is).
--p
_______________________________________________
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