• 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
Re: Can you populate an NSTableView with an NSEnumerator?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can you populate an NSTableView with an NSEnumerator?


  • Subject: Re: Can you populate an NSTableView with an NSEnumerator?
  • From: Sherm Pendley <email@hidden>
  • Date: Tue, 31 Oct 2006 14:20:21 -0500

On Oct 31, 2006, at 1:58 PM, Jarrod Roberson wrote:

I have some data I want to display in an NSTableView, the problem is the
dataset can be big, as in hundreds of thousands of rows.
I have implemented a lightweight NSEnumerator that will let me iterator
across the data without actually having to create a giant NSArray.
I can only find documentation on populating an NSTableView with an NSArray,
for very very very very large datasets what is the prefered idiom(s)?

It doesn't matter. Any storage mechanism will suffice, so long as it can quickly:


	1. Find the number of rows
	2. Fetch a field given its row and column

The examples use NSArrays because they're as simple as a model class can get. The purpose of the examples is to focus on NSTableView, and using a more complicated model class would only serve to distract from that purpose.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ 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
References: 
 >Can you populate an NSTableView with an NSEnumerator? (From: "Jarrod Roberson" <email@hidden>)

  • Prev by Date: Re: Can you populate an NSTableView with an NSEnumerator?
  • Next by Date: NSOpenGLView and resizable NSWindow problem
  • Previous by thread: Re: Can you populate an NSTableView with an NSEnumerator?
  • Next by thread: Re: Can you populate an NSTableView with an NSEnumerator?
  • Index(es):
    • Date
    • Thread