Re: Best way to implement filtering in large Data Set
Re: Best way to implement filtering in large Data Set
- Subject: Re: Best way to implement filtering in large Data Set
- From: Carmin Politano <email@hidden>
- Date: Sat, 14 Apr 2007 19:37:34 -0400
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