Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
- Subject: Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 18 Mar 2014 07:43:28 -0700
On Mar 18, 2014, at 4:56 AM, Vojtěch Meluzín <email@hidden> wrote:
>
> Hi,
>
> my plugins are accepting keyboard events. When a key event is not handled,
> it is forwarded somewhere else like this:
>
> [super keyDown: pEvent]
>
> If that's not done, hosts don't get spacebar for start/stop playback for
> example. Unfortunately there's a problem with Logic - when you press
> 1/2/3/4... it switches between layouts, which unfortunately means destroy
> the plugin view. But the keyDown even is still processing, so Logic
> destroys the plugin while processing it's own message. And this usually
> leads to a crash, with no trace of the plugin in the stack...
Audio Units and their UI are supposed to be separated per the Core Audio spec.
Also, please do not cross-post.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden