• 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
Re: 2-pixel borders in NSSplitView - I want 1 pixel. [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >2-pixel borders in NSSplitView - I want 1 pixel. (From: Graham Cox <email@hidden>)
 >Re: 2-pixel borders in NSSplitView - I want 1 pixel. (From: Brandon Walkin <email@hidden>)

  • Prev by Date: Re: Memory Management to NSError
  • Next by Date: "Cannot finalize a class object"
  • Previous by thread: Re: 2-pixel borders in NSSplitView - I want 1 pixel.
  • Next by thread: How to get the current view controller in iPhone application
  • Index(es):
    • Date
    • Thread