I have an array of Dicts with two fields in each (for example)

Name and City

Given a Name, I'd like to find all unique Cities  or vis-versa.

iTunes seems to do this with the column browser... Eg when you select
"Classic Rock", it pulls up a list of Artists without duplicates in the
list... And does it very fast.

It seems like a Predicate is working here... When one clicks "Classic Rock",
that is added to the predicate as Genre="Classic Rock", but then how does it
extract the list of Artists from the master array since it doesn't want
duplicates?

Is this something I can do with bindings?

I need to be able to select a city and get all the unique matches but ignore
duplicates... And pull the data into an array.
Thanks,

Trygve


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to