Re: fill tableview exactly with tablecolumns
Re: fill tableview exactly with tablecolumns
- Subject: Re: fill tableview exactly with tablecolumns
- From: Matt Neuburg <email@hidden>
- Date: Mon, 8 Jul 2002 12:47:05 -0700
At 12:50 PM -0600 7/8/02, Thomas Harrington wrote:
>
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
I don't want to fit the header; I want n columns of equal width. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.