• 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: Allan Odgaard <email@hidden>
  • Date: Mon, 8 Jul 2002 22:16:52 +0200

On mandag, juli 8, 2002, at 09:47 , Matt Neuburg wrote:

What's been tried and rejected? I'd expect that a combination of
NSTableColumn's -sizeToFit and NSTable's -sizeLastColumnToFit would do
the trick
I don't want to fit the header; I want n columns of equal width. m.

I haven't tried this, but since you don't write what your current recipe is, then I'd suggest simply invoking visibleRect on the tableview to get the width and then use a discrete algorithm to distribute this among your columns.
_______________________________________________
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.
References: 
 >Re: fill tableview exactly with tablecolumns (From: Matt Neuburg <email@hidden>)

  • Prev by Date: How to get file creation date
  • Next by Date: Ken Dyke's GLCube demo?
  • Previous by thread: Re: fill tableview exactly with tablecolumns
  • Next by thread: Insertion Point moving with NSTextStorage
  • Index(es):
    • Date
    • Thread