Re: Transparent divider
Re: Transparent divider
- Subject: Re: Transparent divider
- From: Benjamin Stiglitz <email@hidden>
- Date: Fri, 2 Nov 2007 10:46:37 -0700
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@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