Re: Comparing NSEntityDescription instances?
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