Re: Various UI questions...
Re: Various UI questions...
- Subject: Re: Various UI questions...
- From: Corbin Dunn <email@hidden>
- Date: Fri, 20 Jan 2006 13:03:26 -0800
Am Jan 20, 2006 um 11:40 AM schrieb Chas Spillar:
Thanks Corbin,
I used the following:
[tableView
setColumnAutoresizeingStyle:NSTableViewLastColumnOnlyAutoresizingStyle
];
And
[tableColumn setResizingMask:NSTableColumnAutoresizingMask];
That looks right .
And it worked. However, this is a Tiger only solution. Is there a
Panther
solution that I could use as well?
I'm not sure -- I haven't had to address this issue on Panther. You'd
probably have to watch the resizing of the view and correctly set the
tablecolumn width. It should be fairly easy to do.
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)?
Yes, this is still the case-- simply call [super drawRect:..]. In
NSTableView, we check to see if a subclass overrides this method, and
if it does, it tries to cache stuff for speed purposes. I have worked
on making this much better for future releases (ie: Leopard).
Thank you very much for your help,
No problem!
-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