Re: Unique strings array
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