• 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: NSTableView column sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTableView column sizes
      • From: Quincey Morris <email@hidden>
References: 
 >NSTableView column sizes (From: Daryle Walker <email@hidden>)

  • Prev by Date: Re: NSTableView column sizes
  • Next by Date: Re: NSTableView column sizes
  • Previous by thread: Re: NSTableView column sizes
  • Next by thread: Re: NSTableView column sizes
  • Index(es):
    • Date
    • Thread