Re: NSOutlineView cell size 8 pixels too narrow
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