Re: Various UI questions...
Re: Various UI questions...
- Subject: Re: Various UI questions...
- From: Chas Spillar <email@hidden>
- Date: Fri, 20 Jan 2006 11:40:29 -0800
- Thread-topic: Various UI questions...
Thanks Corbin,
I used the following:
[tableView
setColumnAutoresizeingStyle:NSTableViewLastColumnOnlyAutoresizingStyle];
And
[tableColumn setResizingMask:NSTableColumnAutoresizingMask];
And it worked. However, this is a Tiger only solution. Is there a Panther
solution that I could use as well?
Also, the header of the column does not live resize. In noticed in some
previous posts you mentioned that we need to subclass NSTableView drawRect:.
Is this still correct, and what should this drawRect: method do to achieve
the correct affect (e.g. Have the title of the column live resize)?
Thank you very much for your help,
Chas.
> From: Corbin Dunn <email@hidden>
> Date: Fri, 20 Jan 2006 10:21:08 -0800
> To: Chas Spillar <email@hidden>
> Cc: Cocoa Dev List <email@hidden>
> Subject: Re: Various UI questions...
>
> Chas,
>
>
> On Jan 19, 2006, at 2:25 PM, Chas Spillar wrote:
>
>> 1) I have a source column as an NSTableView with a single column. The
>> behavior that I want is for the column and outline of the tableview to
>> track. That is, resizing the NSTableView should cause the column to
>> fill
>> the view completely. What I see is that sometimes the column stops
>> resizing
>> automatically. I see similar behavior in XCode and then the size of
>> the
>> column snaps to the right. However, iTunes gets this behavior right
>> (the
>> source column just tracks the surrounding view. What is the magic
>> to get
>> this to work correctly?
>
> Well, there are some small bugs in Tiger that will be fixed. However,
> the best way to ensure this works properly is to ensure that the
> column width is the same width as the tableview. You can generally set
> this up in your awakeFromNib. Be sure to set the resize style to the
> last column, and turn off the horizontal scrollbar.
>
> -corbin
_______________________________________________
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