fill tableview exactly with tablecolumns
fill tableview exactly with tablecolumns
- Subject: fill tableview exactly with tablecolumns
- From: Matt Neuburg <email@hidden>
- Date: Mon, 8 Jul 2002 07:29:10 -0700
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.
Thx - 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.