• 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
NSArray (unique Items matching x)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSArray (unique Items matching x)
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Using NSKeyedArchiver to save and restore state on iPhone apps
  • Next by Date: Re: Using NSKeyedArchiver to save and restore state on iPhone apps
  • Previous by thread: Re: What classes have -init?
  • Next by thread: Re: NSArray (unique Items matching x)
  • Index(es):
    • Date
    • Thread