Skip navigation.
 
mlRe: Transparent divider
FROM : Benjamin Stiglitz
DATE : Fri Nov 02 18:46:37 2007

> I see a black vertical line even with isOpaque is NO.
> Is a way to draw it as transparent?
>
> - (void)drawDividerInRect:(NSRect)aRect
> {
>    [[NSColor clearColor] set];
>    NSRectFill(lineRect);
> }


NSRectFill(x) is the same as NSRectFillUsingOperation(x, 
NSCompositeCopy), which won’t use the alpha data. You should be using 
the NSCompositeSourceOver compositing operation instead.

-Ben_______________________________________________

Cocoa-dev mailing list (<email_removed>)

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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>

This email sent to <email_removed>

Related mailsAuthorDate
mlTransparent divider Lorenzo Nov 2, 16:52
mlRe: Transparent divider Benjamin Stiglitz Nov 2, 18:46