Transparent window, opaque contents
Transparent window, opaque contents
- Subject: Transparent window, opaque contents
- From: John Scalo <email@hidden>
- Date: Fri, 29 Mar 2002 18:22:32 -0800
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.
Any ideas?
Thanks
_______________________________________________
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.