NSTableView with large arrays
NSTableView with large arrays
- Subject: NSTableView with large arrays
- From: Trygve Inda <email@hidden>
- Date: Tue, 08 Nov 2005 10:27:45 +0000
I am moving an app from Carbon to Cocoa and in the Carbon version I have a
DataBrowser with about 10,000 rows. In my callback (dataSource in
Cocoa-speak) I retrieve the data from disk as needed.
I allow sorting on either of two columns and use indexes to keep the speed
up (so that I am not really resorting each time a user clicks a column
header. This allows me to grab the data from a random-access file on disk as
needed.
How should I handle it in Cocoa? In Carbon, all 10,000 records are never in
memory at once, but all the Cocoa examples I have seen load up an
NSMutableArray with all the table data and use objectAtIndex:rowIndex to
show it.
Does NSTableView cache data at all?
How well will it perform with 10,000 rows?
Thanks,
Trygve
_______________________________________________
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