Re: Transparent Overlay Custom View
Re: Transparent Overlay Custom View
- Subject: Re: Transparent Overlay Custom View
- From: Paul Thomas <email@hidden>
- Date: Sat, 6 May 2006 12:11:48 +0100
On 6 May 2006, at 11:59, j o a r wrote:
On 6 maj 2006, at 12.29, Paul Thomas wrote:
I've seen a couple of references to overlapping views not being
supported - does that mean I can't make an overlay this way?
I don't think it's supported.
If so, do I have to do something tricky with NSWindow overlays
instead?
It sounds tricky (at least if you expect that the frame of the view
could change), but perhaps that would be the best way.
NSRectFill([self bounds]);
I think you should experiment with using NSRectFillUsingOperation()
instead, probably using NSCompositeSourceOver.
That's done it - ta.
I think I get it now - views are 'light-weight' in that each is drawn
directly over the lower (in the z-order) views. Windows have their
own context and Quartz performs the compositing between them.
What threw me was the -isOpaque: it doesn't enable automatic
compositing, it's just a short cut in finding which views are hidden.
paul.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden