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: Tue, 11 May 2010 13:10:06 -0700
On Mon, May 10, 2010 at 7:52 PM, Ross Bencina
<email@hidden> wrote:
> Paul Davis wrote:
>>
>> You *float* the HIView *above* the parent NSWindow/NSView.
>
> I want to *embed* not *float*. I want the HIView inside a cropped viewport
> in a scrolling view -- *floating above* simply isn't going to cut it.
Since you would be putting the Carbon view inside a borderless
WindowRef-wrapping NSWindow, if you keep the window's frame in sync
with the visible content rect of your scrollview, you can take
advantage of Quartz's natural clipping behavior to get the effect you
want. Currently-shipping versions of OmniPlan and OmniOutliner use
this technique to great effect (though they aren't Carbon), as does
the operating system itself.
--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