If anyone has a tutorial or sample code for this it would be greatly appreciated! This issues comes up from time to time and there is not a lot sample code out there for it. Most of the posts are conceptual rather than examples.

Todd


On May 14, 2009, at 10:14 AM, Corbin Dunn wrote:


On May 14, 2009, at 7:49 AM, I. Savant wrote:


On Thu, May 14, 2009 at 10:41 AM, Scott Ribe <scott_r...@killerbytes.com > wrote:




First a fast way to read the data off disk to begin with, for start up time.

Then caching of row heights when they are calculated. Finally binary search

of row heights/positions when mapping coordinates to row indexes.



Of course depending on what calculations are truly necessary, the first draw

may still be slow, but there's really no reason a redraw should be slow

after changing one (or a few) values.


Informative, thank you.


Yup, Scott's idea sounds like a good plan. Most people get good performance out of variable row heights by doing some sort of caching or heuristic that quickly determines the row height.

-corbin


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/applecocoalist%40filmworkers.com

This email sent to applecocoal...@filmworkers.com

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit 
http://www.messagelabs.com/email______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to