• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Transparent Overlay Custom View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Transparent Overlay Custom View (From: Paul Thomas <email@hidden>)

  • Prev by Date: Transparent Overlay Custom View
  • Next by Date: Re: How to control the commit of text edit field with binding?
  • Previous by thread: Transparent Overlay Custom View
  • Next by thread: Bizarre CoreData Problem
  • Index(es):
    • Date
    • Thread