• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Transparent divider
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Transparent divider
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: Best practice for hidden keyboard shortcuts
  • Next by Date: Re: [Leopard] Core Data model versioning vs. NSPersistentDocument
  • Previous by thread: Re: Best practice for hidden keyboard shortcuts
  • Next by thread: Re: Transparent divider
  • Index(es):
    • Date
    • Thread