Re: 2-pixel borders in NSSplitView - I want 1 pixel.
Re: 2-pixel borders in NSSplitView - I want 1 pixel.
- Subject: Re: 2-pixel borders in NSSplitView - I want 1 pixel.
- From: Brandon Walkin <email@hidden>
- Date: Tue, 6 Jan 2009 23:38:20 -0500
NSSplitView's thin style produces 1 pt thick dividers. You can verify
this by asking the split view for it's -dividerThickness. What's
likely happening in your document is that one of your subviews has
it's border style set to something other than "none" in IB. Your
divider would appear to be 2 pixels thick, but one pixel would be the
divider and the other would be the subview's border.
To change the color, you can use BWSplitView (which it appears you
already have loaded in IB). It's a subclass of NSSplitView which, at
the moment, only adds one feature which is being able to set the color
for thin dividers in the IB inspector.
The two common divider colors are 64,64,64 and 165,165,165. Please
don't use black. :)
Brandon
On 6-Jan-09, at 11:05 PM, Graham Cox wrote:
My main document uses a split view with a main content area and a
source-style list. I'm using the "thin" style of split view along
with the excellent BWToolbarButton to achieve a standard Apple-ish
look.
However, the split view ends up with a 2-pixel split bar, whereas
all other apps I've seen with this layout have a 1-pixel bar. There
is variation as to its colour in various apps also - some are black
and some are grey. How can I set this to 1-pixel and/or set the
colour? - do I need to subclass?
--Graham
_______________________________________________
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
_______________________________________________
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