• 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: Comparing NSEntityDescription instances?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparing NSEntityDescription instances?


  • Subject: Re: Comparing NSEntityDescription instances?
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 18 Apr 2006 04:04:15 +0200

Jim,

On 18.4.2006, at 3:53, Jim Correia wrote:

They produce identical hash codes, but -isEqual: returns NO.
...
Normally I'd just figure that the class didn't implement -isEqual: and move on, but it appears that NSEntityDescription does implement -isEqual: and -hash.


Am I misunderstanding something fundamental, or is this just a bug?

Fundamentally there is absolutely no problem in same hashes for non- equal objects. Happens all the time. If it were the other way (isEqual && different hashes), well that would be a bug.


It might be perhaps argued it would be better if such entities actually were considered equal--I don't think so myself, but am too little a CD expert to say that with any weigth (but for the weight of the ton of salt you should take it with :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Comparing NSEntityDescription instances?
      • From: Jim Correia <email@hidden>
References: 
 >Comparing NSEntityDescription instances? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: addObserver:forKeyPath:options:context
  • Next by Date: Re: Interface Builder Date Localization
  • Previous by thread: Comparing NSEntityDescription instances?
  • Next by thread: Re: Comparing NSEntityDescription instances?
  • Index(es):
    • Date
    • Thread