Re: Transparent white NSView (Solved)
Re: Transparent white NSView (Solved)
- Subject: Re: Transparent white NSView (Solved)
- From: Thomas Engelmeier <email@hidden>
- Date: Wed, 14 Jun 2006 16:37:23 +0200
On Jun 14, 2006, at 2:15 PM, I. Savant wrote:
Well ... you're first drawing the whole background with
+controlDarkShadowColor, then you're drawing atop *that* color with
an alpha-faded white. What'd you expect when combining those
colors? :-)
Well, actually, I use NSFrameRect, so that part is correct.
Also, when trying to inset a rectangle, use NSInsetRect().
Thanks for the advice..
[[NSColor colorWithDeviceWhite:1.0 alpha:.3] set];
NSRectFill(tRect );
and here was the show stopper - NSRectFill treats the alpha in some
odd way, [NSBezierPath fillRect:tRect]; is the solution..
Regards,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden