Re: Partially Transparent windows
Re: Partially Transparent windows
- Subject: Re: Partially Transparent windows
- From: Joe Turner <email@hidden>
- Date: Thu, 29 Jan 2009 22:16:29 -0600
Thanks!
Works perfectly! I didn't expect it to be that easy :)
Cheers,
Joe Turner
On Jan 29, 2009, at 4:34 PM, Steve Christensen wrote:
On Jan 29, 2009, at 2:04 PM, Joe Turner wrote:
I've noticed that some applications I see have partially
transparent windows. What I mean by this, is that the window is
100% opaque in most parts, but then there's a 50% transparent part
(you can see your desktop through the window). I am wondering if
there is a simple way to do this, or if you must subclass NSWindow
or something of the sort.
You could start off with doing this in, for example, your window
controller's -awakeFromNib method:
[window setOpaque:NO];
[window setBackgroundColor:[NSColor colorWithCalibratedWhite:0.0
alpha:0.5]];
Then in IB create your window and fill it with views that have
transparent or opaque backgrounds as desired.
steve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden