Re: NSTableView column sizes
Re: NSTableView column sizes
- Subject: Re: NSTableView column sizes
- From: Stephane Sudre <email@hidden>
- Date: Wed, 15 Mar 2017 14:51:08 +0100
On Wed, Mar 15, 2017 at 9:59 AM, Daryle Walker <email@hidden> wrote:
> 1. Is there a way to make the last (right in the U.S. localization) column to always be at the end of the table-view, instead of a gap after a resize?
Yes, there is.
> 2. My table has two columns. Is there a way to keep their sizes in proportion after a window resize? (If the divider is moved, resizes will follow the new proportions.)
Yes, there is.
In both cases, if you are not happy with the Column Sizing option
(respectively Last Column Only and Uniform), you can always enumerate
the columns of the table view and set their width as you like (by
registering for the NSViewFrameDidChangeNotification notification of
the appropriate view). You need to take into account the
intercellSpacing.
_______________________________________________
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