• 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
How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?

Regards
Vojtech
_______________________________________________

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


  • Follow-Ups:
    • Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Saving while opening with NSDocument
  • Next by Date: Re: Best way to composite/tile multiple CGImages to one image
  • Previous by thread: Re: menuNeedsUpdate for key equivalents?
  • Next by thread: Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
  • Index(es):
    • Date
    • Thread