• 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: NSOutlineView cell size 8 pixels too narrow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView cell size 8 pixels too narrow


  • Subject: Re: NSOutlineView cell size 8 pixels too narrow
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 01 Oct 2013 21:06:28 -0700

On 2013 Oct 01, at 15:38, Trygve Inda <email@hidden> wrote:

> No matter how I configure the nib, the cell is always 8 pixels too
> narrow until I resize the window which causes it to work correctly after
> that.

I remember that drove me crazy when I first used an outline view some years ago.  A couple things come time mind…

• When calculating column widths, remember to account for intercell spacing, which you can get from -[NSTableView intercellSpacing].  I think it defaults to 2 points per joint.

• -[NSTableView sizeLastColumnToFit] is your friend.


_______________________________________________

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: 
 >NSOutlineView cell size 8 pixels too narrow (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: App never reaches applicationDidFinishLaunching method
  • Next by Date: Window too large for Versions Browser
  • Previous by thread: NSOutlineView cell size 8 pixels too narrow
  • Next by thread: Re: NSOutlineView cell size 8 pixels too narrow
  • Index(es):
    • Date
    • Thread