NSTableView, columns only (live)resize without data
NSTableView, columns only (live)resize without data
- Subject: NSTableView, columns only (live)resize without data
- From: Brian Amerige <email@hidden>
- Date: Thu, 9 Nov 2006 09:47:19 -0500
Hi all,
I know I've asked this question before, but I've actually learned a
little bit more about what's going on behind a live Resize in an
NSTableView. Given that, I've also noticed one additional thing.
My tableview actually performs exactly what it's supposed to, but
only without data. It'll resize all columns uniformly, perfectly. The
problem is, as soon as data is added to the tableView (not a lot of
data either, I've tested with everything from one to one hundred
rows), the behavior of the live resize is significantly different.
While it appears to call sizeToFit: just the same as without data, it
doesnt' seem to have any affect. It waits until I've finished
resizing to send the sizeToFit: call, where it actually
I've tried over-riding inLiveResize: to tell it to call sizeToFit:
every no matter what (right before I return [super inLiveResize]),
but the resize artifacts still seem evident.
I know others have been asked this, and I definitely know it's
possible, but again, there doesn't seem to be a succinct answer. Is
it a bug in NSTableView we've got to fix via our subclasses?
Open to any comments,
Brian.
_______________________________________________
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