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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to