How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
- Subject: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
- From: Vojtěch Meluzín <email@hidden>
- Date: Tue, 18 Mar 2014 12:56:56 +0100
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...
Any ideas?
_______________________________________________
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