Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
- Subject: Re: Wrapper class for Cocoa Audio Units in Carbon Hosts
- From: Stephen Blinkhorn <email@hidden>
- Date: Tue, 11 Aug 2009 15:31:57 -0600
On 8 Aug 2009, at 11:02, Seth Nickell wrote:
Toward a better Solution:
Stephan from Prosoniq told me how they've handled this issue: they
create a carbon window with a "open cocoa window" button which brings
up a new cocoa window. This is certainly the most compatible solution,
but also not the ideal user experience...
I'm using this approach too. In Ableton Live (which is a major reason
we are all doing this) the inconvenience isn't too excessive since
Live handles patches/programs in another window. Cocoa support in
Live 8 is on the cards I'm told.
but it inspires me to think
about a similar trick: use a Carbon window as a virtual frame for a
border-less Cocoa window. Size the Carbon window to "swallow" the
borderless cocoa window, and place the cocoa window directly above it.
Whenever the carbon is moved/resized, move/resize the cocoa. Create
the illusion that its all just one window.
That would be ideal.
Something else. If a host is Cocoa compatible and it is presented
with an AU that boasts both Carbon and Cocoa views (as above) can it
be guaranteed that the host will always use the Cocoa view?
Otherwise, if we are using the above view spawning hack things can get
messy in some hosts
Stephen
_______________________________________________
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