NSArray (unique Items matching x)
NSArray (unique Items matching x)
- Subject: NSArray (unique Items matching x)
- From: Trygve Inda <email@hidden>
- Date: Wed, 10 Feb 2010 21:45:23 +0000
- Thread-topic: NSArray (unique Items matching x)
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 (email@hidden)
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:
This email sent to email@hidden