On 2009 Mar 21, at 14:27, Michael wrote:

I cannot get tableview to show columns of constant width.

        [tv sizeToFit];

What I get when I use the above code is the first couple of columns varying in size, then the next "n" columns equally space.

If I have missed something in the documentation,

Maybe you have.  The documentation for -[NSTableView sizeToFit] says:
"All columns are resized to the same size, up to a column's maximum size."

Hmmmm. What are your columns' maximum sizes? These can be set in Interface Builder, but to find out for sure, try something like this:

for (NSTableColumn* tc in [tv tableColumns]) {
   NSLog(@"maxWidth = %f", [tc maxWidth]) ;
}


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to