Re: Transparent window, opaque contents
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.