Transparent window and opaque objects
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