• 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 window, opaque contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent window, opaque contents


  • Subject: Re: Transparent window, opaque contents
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 30 Mar 2002 10:37:50 +0000

On Saturday, March 30, 2002, at 02:22 AM, John Scalo wrote:

My theory is that this is doable by filling a transparent window entirely
with a custom view and subclassing NSView. The problem is, I don't know what
method to override in NSView to get its contents to show up as fully opaque.
I assume drawRect, but then what? I did override NSView's isOpaque to always
return YES but that hasn't helped.

I think if you paint your window background with transparency (in your custom view subclass, which I presume you are using as your window's contentView?) and then have controls on top of that which draw opaquely, I think that should work.

-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Transparent window, opaque contents (From: John Scalo <email@hidden>)

  • Prev by Date: Re: Frameworks in Bundles
  • Next by Date: Multiple instances of osascript == Bus error
  • Previous by thread: Transparent window, opaque contents
  • Next by thread: Re: Transparent window, opaque contents
  • Index(es):
    • Date
    • Thread