Re: Getting a table to resize columns. I'm doing everything right but it's not working?
Re: Getting a table to resize columns. I'm doing everything right but it's not working?
- Subject: Re: Getting a table to resize columns. I'm doing everything right but it's not working?
- From: "I. Savant" <email@hidden>
- Date: Mon, 24 Apr 2006 11:25:59 -0400
Theodore:
Without more knowledge of your project, all I can suggest is the
documentation.
See NSTableView's -setAutoresizesAllColumnsToFit: and -
setColumnAutoresizingStyle: methods. Also -sizeLastColumnToFit may be
of interest.
See also NSTableColumn's -setResizingMask: and -sizeToFit methods,
which further define the behavior.
Hope this helps.
--
I.S.
On Apr 24, 2006, at 10:40 AM, Theodore H. Smith wrote:
How do you get an NSTableView to resize it's columns?
Is there any mistake I could make that might inadvertantly stop it
from doing the auto-resizing?
I got this NSTableView.
In IB, it has "Column Resizing" checked.
The column I want resized, is column 2, with an Identifier string
of "2". It has "Live Resize" and "User Resize" set to true,
although you can't actually get the grab bars because the Column
headers are hidden.
I'm setting the MinWidth to something quite small, like:
[col setMaxWidth:600];
[col setMinWidth:90];
The table exists within a splitview. Resizing the window or the
splitview, will resize the NSTableView in question.
So... why doesn't the thing resize when I resize it? Instead, all
the columns stay at a fixed size, leaving a huge amount of extra
space if there's too much, or just being clipped at the right if
there's not enough!!
Something is going on here but I don't know what.
--
http://elfdata.com/plugin/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden