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: Kyle Sluder <email@hidden>
- Date: Wed, 12 May 2010 01:10:17 -0700
On Tue, May 11, 2010 at 8:49 PM, Ross Bencina
<email@hidden> wrote:
> That's a great idea, and something I hadn't thought of. Unfortunately it is
> rather more complicated in my case. Each plugin is embeded inside a
> pseudo-window frame (an NSView), and all of these plugin frames can be
> overlapping -- it's basically a custom implemented window manager inside a
> scrolling view. So I would need non-rectangular clipping on the carbon
> windows to simulate mixing z-order between carbon HIViews and NSViews --
> sounds like a lot of work. On the other hand, given that some plugins seem
> to assume they embedded in a very simple hierarchy it might be a very
> compatible way to move forward.
Since I assume you already have all the logic necessary to move your
widgets around to deal with non-rectangularity already, it's just a
matter of hosting the views in the correct container (your normal view
hierarchy or the floating Carbon-hosting 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.
--Kyle Sluder
_______________________________________________
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