This reminded me of this blog post, which you may find interesting:
http://ridiculousfish.com/blog/posts/array.html

Thanks,
Jon


On Feb 14, 2012, at 8:35 AM, Quincey Morris wrote:

> NSDictionary may not use the value object hashes, but I don't see that 
> there's anything from preventing it from doing so if it proved beneficial to 
> the implementation (as well as, of course, using the hashes of the key 
> objects). But there's also NSSet, NSCountedSet and NSOrderedSet, where the 
> [un-copied] object *is* the key, as well as things like NSMapTable. And 
> there's nothing preventing NSArray from keeping a supplementary hash-based 
> index to assist in looking up objects, although I can't imagine it's ever 
> likely to be implemented that way.


_______________________________________________

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

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

Reply via email to