Re: Simulate HIView using NSView for AudioUnits?
Re: Simulate HIView using NSView for AudioUnits?
- Subject: Re: Simulate HIView using NSView for AudioUnits?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sat, 07 Dec 2013 17:19:54 +0100
Le 7 déc. 2013 à 16:38, Vojtěch Meluzín <email@hidden> a écrit :
> Hi,
>
> when programming AudioUnits (or other audio plugin interfaces) one has to implement 3 GUI interfaces - embedded, composited and cocoa. The first 2 are based on HIViews. This ancient stuff doesn't work very well, its features are limited, and host support is weird at least. So I'm thinking - would it be possible to use NSViews in all cases and somehow use them instead of HIViews even if the host asks for the embedded/composited mode?
>
> I don't want to replace just the drawing, I want to replace everything. It is just crazy when you have a plugin with 3 different methods to create GUI, you don't know which host uses what in which circumstances... So if it would be possible to create NSViews in all cases and just somehow simulate HIViews with it, but the rest of it would work using NSViews, it would safe one lots of time and room for error. I need to support 10.5 and newer, but that shouldn't be a problem, right?
>
> Does it make sense? Is there a way to do that?
You may try HICocoaViewCreate() from HICocoaView.h in HIToolbox.
I don't know if it plays well when used in a AudioUnit host, but if it does, this is probably the easiest way to accomplish what you are looking for.
> Thanks!
>
> Vojtech
>
> _______________________________________________
> 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
-- Jean-Daniel
_______________________________________________
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