Transparent divider
Transparent divider
- Subject: Transparent divider
- From: Lorenzo <email@hidden>
- Date: Fri, 02 Nov 2007 16:52:24 +0100
I set my NSSplitView dividerThickness to 1.0;
But it is too small to pick it and drag it to resize the NSSplitView.
Anyway, 2.0 is too large to display. It has not a nice look.
So I thought to set the dividerThickness to 2.0 and to draw it with a
vertical transparent line (width 2.0). But it doesn't work as expected.
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);
}
- (float)dividerThickness
{
return 2.0;
}
- (BOOL)isOpaque
{
return NO;
}
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