Skip navigation.
 
mlRe: Transparent white NSView (Solved)
FROM : Thomas Engelmeier
DATE : Wed Jun 14 16:37:23 2006

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

Related mailsAuthorDate
mlTransparent white NSView Thomas Engelmeier Jun 14, 11:23
mlRe: Transparent white NSView I. Savant Jun 14, 14:15
mlRe: Transparent white NSView (Solved) Thomas Engelmeier Jun 14, 16:37
mlRe: Transparent white NSView Uli Kusterer Jun 14, 17:26