Re: Where to noteHeightOfRowsWithIndexesChanged
Re: Where to noteHeightOfRowsWithIndexesChanged
- Subject: Re: Where to noteHeightOfRowsWithIndexesChanged
- From: Jerry Krinock <email@hidden>
- Date: Tue, 15 Jun 2010 10:51:11 -0700
On 2010 Jun 15, at 04:26, Tony P wrote:
> I've not found a good place to put noteHeightOfRowsWithIndexesChanged. I get either overlapping rows or some blank rows during scroll. ... Any ideas anyone?
I send noteHeightOfRowsWithIndexesChanged: after updating the contents of the array controller to which a table is bound, but I still see little artifacts sometimes. It's in a rarely-used utility view so I've let it slide. But under the conditions you've mentioned,
> There are usually about 200,000 rows, so calculating the actual height for all rows is not an option (since it takes about 19 seconds).
you may have exceeded the capabilities of NSTableView's variable heights. Possibly NSTableView needs to know the height of all preceding rows in order to calculate the position of a given row? You may need to compromise your requirements, or else consider making your own custom view which can "draw smarter". But this may not be practical since NSTableView provides a *lot* of behavior you might still need, meaning you'd be discovering little issues and writing code for weeks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden