• 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: Unique strings array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unique strings array


  • Subject: Re: Unique strings array
  • From: Graham Cox <email@hidden>
  • Date: Sat, 12 Mar 2011 13:39:22 +1100

On 12/03/2011, at 1:33 PM, Stevo Brock wrote:

> Unless I'm missing something, if you have aWord1 = @"the" and aWord2 = @"the", they will both get added to the array/set.


NSSet will only store one "the" - it automatically disallows duplicates. It uses hashing internally so should be as fast as NSDictionary for retrieval.

--Graham


_______________________________________________

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

References: 
 >Unique strings array (From: Leonardo <email@hidden>)
 >Re: Unique strings array (From: Dave DeLong <email@hidden>)
 >Re: Unique strings array (From: Stevo Brock <email@hidden>)

  • Prev by Date: Re: Unique strings array
  • Next by Date: Re: Unique strings array
  • Previous by thread: Re: Unique strings array
  • Next by thread: Re: Unique strings array
  • Index(es):
    • Date
    • Thread