Re: 2-pixel borders in NSSplitView - I want 1 pixel. [SOLVED]
Re: 2-pixel borders in NSSplitView - I want 1 pixel. [SOLVED]
- Subject: Re: 2-pixel borders in NSSplitView - I want 1 pixel. [SOLVED]
- From: Graham Cox <email@hidden>
- Date: Wed, 7 Jan 2009 16:06:58 +1100
On 7 Jan 2009, at 3:38 pm, Brandon Walkin wrote:
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
Thanks, that was all it was... weird, I could have sworn I'd looked at
that.
Don't worry, I don't want black...
--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