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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to