• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTableView with large arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTableView with large arrays
      • From: j o a r <email@hidden>
  • Prev by Date: Completely white or transparent drawer
  • Next by Date: Re: Repost: NSBrowser with NSTreeController
  • Previous by thread: Re: Completely white or transparent drawer
  • Next by thread: Re: NSTableView with large arrays
  • Index(es):
    • Date
    • Thread