• 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: Best way to implement filtering in large Data Set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to implement filtering in large Data Set


  • Subject: Re: Best way to implement filtering in large Data Set
  • From: Micha Fuhrmann <email@hidden>
  • Date: Sun, 15 Apr 2007 13:00:20 +0200

Many thanks Carmin,

I'll dive in as you suggest. Last thing, would it be wise to use Key- Value coding for the songs objects, would that speed up filtering?


Regards,

Micha
On 15 avr. 07, at 01:37, Carmin Politano wrote:

Forget filtering at the NSTableView level.
Use an NSArrayController to handle the actual data array (which accepts filtering, ordering, etc.) and then bind the NSTableView to the NSArrayController.


On Apr 14, 2007, at 5:43 AM, Micha Fuhrmann wrote:

Hi there,


I would need help at a higher architecture level, the subject being how to best implement a table view filtering with a large data set. The best example existing I can think of is iTunes.


The main table (Unfiltered) would contain all the songs in the dataset. Behind would be an Array contain "Songs" Object which would contain all the Songs specifics (Artist, Album etc).

On the side would be 2 other tables contain all the Artist and all the Genres.

Now what would be the best way to implement both "objectValueForTableColumn" and "numberOfRowsInTableView" as the filtering starts.

For the moment all I could come up with is to create a "Sub Array" derived from the Main Array with loops using the constrains.

There must be a better way to do this then looping around.


Any help would be greatly appreciated.

Micha
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40verizon.net


This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Best way to implement filtering in large Data Set
      • From: Carmin Politano <email@hidden>
References: 
 >Best way to implement filtering in large Data Set (From: Micha Fuhrmann <email@hidden>)
 >Re: Best way to implement filtering in large Data Set (From: Carmin Politano <email@hidden>)

  • Prev by Date: Re: Best way to implement filtering in large Data Set
  • Next by Date: Re: NSDrawer border width
  • Previous by thread: Re: Best way to implement filtering in large Data Set
  • Next by thread: Re: Best way to implement filtering in large Data Set
  • Index(es):
    • Date
    • Thread