Re: copy & isEqual nightmares
Re: copy & isEqual nightmares
- Subject: Re: copy & isEqual nightmares
- From: Jonathan Hull <email@hidden>
- Date: Wed, 15 Feb 2012 10:53:22 -0800
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 (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