Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
- Subject: Re: embedding/hosting Carbon/HIView in Cocoa/NSView? [slightly-OT]
- From: "Ross Bencina" <email@hidden>
- Date: Wed, 12 May 2010 23:41:23 +1000
Kyle Sluder wrote:
Since I assume you already have all the logic necessary to move your
widgets around to deal with non-rectangularity already
Well, this is all handled by NSView or HIView compositing. So to say I have
all the logic is not quite correct. Infact since this is implemented using
Qt, all I'm doing is setting non-rectanguilar bitmap masks for the widgets
and leaving the masking itself to Qt/Cocoa or Qt/Carbon.
it's just a
matter of hosting the views in the correct container (your normal view
hierarchy or the floating Carbon-hosting window).
Are you suggesting that I have a single Carbon-hosting window for all
plugins? I guess that would make it easier as I'd only need a single
non-rectangular mask for the whole carbon window.
The two windows can
coordinate amongst themselves to make sure the NSView-derived controls
stay out of the way of your HIView controls, even though the two
technically don't exist inside the same view hierarchy. Your users
can't tell the difference.
Yeah, sounds like a good way to do it. In VST-land I've already seen some
plugins create overlay windows over the top of the window they're given (I
think pluggo does that for example). I guess that's not going to play nicely
with this trick... (or any other).
Ross.
_______________________________________________
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