• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Partially Transparent windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Partially Transparent windows


  • Subject: Re: Partially Transparent windows
  • From: Steve Christensen <email@hidden>
  • Date: Thu, 29 Jan 2009 14:34:42 -0800

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


  • Follow-Ups:
    • Re: Partially Transparent windows
      • From: Joe Turner <email@hidden>
References: 
 >Partially Transparent windows (From: Joe Turner <email@hidden>)

  • Prev by Date: viewDidLoad called after viewWillAppear:
  • Next by Date: Re: Interface Builder Plugin Dependency
  • Previous by thread: Partially Transparent windows
  • Next by thread: Re: Partially Transparent windows
  • Index(es):
    • Date
    • Thread