• 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
Transparent window and opaque objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transparent window and opaque objects


  • Subject: Transparent window and opaque objects
  • From: Lorenzo <email@hidden>
  • Date: Thu, 25 Oct 2007 00:14:51 +0200

Hi,
I set my window with a transparent background

    [win setBackgroundColor:[NSColor clearColor]];
    [win setOpaque:NO];
    [win setHasShadow:NO];
    [[win contentView] addSubview:aView];

The aView contains an NSImageView and some white NSTextField labels.
The NSImageView contains a rounded corner rectangle gray image with alpha
0.5. My intention is to see an half a transparent rounded corner pop-up
window with some pure-white text over.
In IB I can quite see the half-transparent picture within the NSImageView,
and the white text OVER the image. Instead when I launch the application,
the white text gets multiplied (I guess) by the image alpha value and
results in a dark gray color. What did I forget? Any idea?


Best Regards
--
Lorenzo
email: email@hidden

_______________________________________________

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: Transparent window and opaque objects
      • From: Andrew Merenbach <email@hidden>
    • Re: Transparent window and opaque objects
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Loading RTF Problem
  • Next by Date: Re: Transparent window and opaque objects
  • Previous by thread: Re: Loading RTF Problem
  • Next by thread: Re: Transparent window and opaque objects
  • Index(es):
    • Date
    • Thread