• 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
Re: Simulate HIView using NSView for AudioUnits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulate HIView using NSView for AudioUnits?


  • Subject: Re: Simulate HIView using NSView for AudioUnits?
  • From: Blue Cat Audio Dev <email@hidden>
  • Date: Tue, 10 Dec 2013 10:00:49 +0100

We did use HICocoaViewCreate in the early days of Leopard, but it ended up being not very reliable in many cases. The worst case is if the app has been developed with Cocoa but still requires a Carbon UI from the AU (or VST). In this case, many events are just not forwarded properly to your cocoa NSView (Cocoa->Carbon->Cocoa tunnelling does not work) - for example you get no mouse events at all. There are lots of bugs with this Carbon/Cocoa wrapper that Apple will never fix anyway.

So I think we now have a mix of HICocoaViewCreate when it is supposed to work, and fall back to the good old child NSWindow trick when we know it will be an issue. Honestly, I think it's not worth the trouble using the HICocoaView. The NSWindow trick has its own problems, but it's much easier to handle than the other one :-).

For Audio Units, most hosts now look first for a Cocoa View, so it's not a big deal, but for VST, not many hosts implement the NSView Cockos extension - same for plug-ins - sor you're stuck with Carbon/Cocoa hacks :-(

Looking forward to seeing all hosts migrating to 64-bit in the (near?) future...!

Guillaume Jeulin
Blue Cat Audio
www.bluecataudio.com

Quoting Vojtěch Meluzín <email@hidden>:

Well, that's arrogant and useless indeed :D. But you are right, Apple
clearly made it obvious many times, that they don't care about developers
and software and their customers should be teenagers with iPhones :D.

For the rest of us, who understand the need for other plugin interfaces
(for example because these are more relevant than AU), the same questions
:) :

Anyway any experiences with HICocoaViewCreate? So far it seems like nobody
used it successfuly.

Or any other reasonable solution - e.g. embedding a NSView inside WindowRef?

Cheers!
Vojtech
www.meldaproduction.com


2013/12/9 Paul Davis <email@hidden>




On Mon, Dec 9, 2013 at 1:11 AM, Vojtěch Meluzín <email@hidden
> wrote:

Paul, I'm afraid you do have to. Your host may be able to handle Cocoa,
but others may not and VST doesn't even allow it in 32-bits.


Your question began "when programming AudioUnits" so I chose to ignore the
next parenthetical clause "(or other audio plugin interfaces)" ... pardon
my arrogance but I don't see any point in supporting VST on OS X. Apple
have made it clear that they don't want it around, and plugin developers
have done a fine job making sure that the overwhelming majority of their
quality plugins are available in AU format. And for actual AU plugins,
there is no serious reason to offer a Carbon GUI at this time.

Anyway, I'll you plugin folk carry on with the more useful discussion :)

--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


  • Follow-Ups:
    • Re: Simulate HIView using NSView for AudioUnits?
      • From: Stefan Gretscher <email@hidden>
References: 
 >Simulate HIView using NSView for AudioUnits? (From: Vojtěch Meluzín <email@hidden>)
 >Re: Simulate HIView using NSView for AudioUnits? (From: Paul Davis <email@hidden>)
 >Re: Simulate HIView using NSView for AudioUnits? (From: Vojtěch Meluzín <email@hidden>)
 >Re: Simulate HIView using NSView for AudioUnits? (From: Paul Davis <email@hidden>)
 >Re: Simulate HIView using NSView for AudioUnits? (From: Vojtěch Meluzín <email@hidden>)

  • Prev by Date: Re: Simulate HIView using NSView for AudioUnits?
  • Next by Date: A3E, Advanced Audio + Applications Event Announced for September 2014 in Boston MA
  • Previous by thread: Re: Simulate HIView using NSView for AudioUnits?
  • Next by thread: Re: Simulate HIView using NSView for AudioUnits?
  • Index(es):
    • Date
    • Thread