• 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: copy & isEqual nightmares
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >copy & isEqual nightmares (From: James Maxwell <email@hidden>)
 >Re: copy & isEqual nightmares (From: Uli Kusterer <email@hidden>)
 >Re: copy & isEqual nightmares (From: Quincey Morris <email@hidden>)
 >Re: copy & isEqual nightmares (From: James Montgomerie <email@hidden>)
 >Re: copy & isEqual nightmares (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?
  • Next by Date: receptionist pattern question: NSOperationQueue vs. GCD
  • Previous by thread: Re: copy & isEqual nightmares
  • Next by thread: Re: copy & isEqual nightmares
  • Index(es):
    • Date
    • Thread