Re: Transparent window, opaque contents
Re: Transparent window, opaque contents
- Subject: Re: Transparent window, opaque contents
- From: Adam Atlas <email@hidden>
- Date: Sat, 30 Mar 2002 09:27:35 -0500
Well I thoroughly checked the archives on this one. It's kind of funny,
it's
been asked at least 4 times but no one has ever answered. Anyway here
goes-
I want to make the window transparent to some arbitrary degree, but I
want
the contents (controls, text, and image) to remain opaque.
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.
Have you looked at:
http://developer.apple.com/samplecode/Sample_Code/Cocoa/RoundTransparentWindow.
htm
and:
http://www.bignerdranch.com/Resources/Examples.html
(look at the "window that is oval shaped" example)
--
Adam Atlas
Atomm Software
http://www.atommic.com
_______________________________________________
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.