• 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: fill tableview exactly with tablecolumns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fill tableview exactly with tablecolumns


  • Subject: Re: fill tableview exactly with tablecolumns
  • From: Thomas Harrington <email@hidden>
  • Date: Mon, 8 Jul 2002 12:50:16 -0600

On Monday, July 8, 2002, at 08:29 AM, Matt Neuburg wrote:

If an NSTableView is to have exactly n NSTableColumns, what is the magic
formula for the width of each column such that the columns will *exactly*
fill the space from the left side to the right side - i.e., so that there
will be no white blob at the right and so that the horizontal scrollbar is
not activated and not needed?

I have been experimenting but I can't quite hit on it. Depending on the
number of columns, I always come out a little too wide or a little too
narrow. It's as if a rounding error (a big rounding error) is happening
behind the scenes.

What's been tried and rejected? I'd expect that a combination of NSTableColumn's -sizeToFit and NSTable's -sizeLastColumnToFit would do the trick, but I haven't tried it.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: fill tableview exactly with tablecolumns
      • From: Matt Neuburg <email@hidden>
References: 
 >fill tableview exactly with tablecolumns (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Drag and Drop onto textfields - only the border is active
  • Next by Date: Re: Problems
  • Previous by thread: fill tableview exactly with tablecolumns
  • Next by thread: Re: fill tableview exactly with tablecolumns
  • Index(es):
    • Date
    • Thread