On Thu, Aug 20, 2009 at 1:37 PM, Kyle Sluder<[email protected]> wrote: > On Thu, Aug 20, 2009 at 1:33 PM, Clark Cox<[email protected]> wrote: >> -isEqual: is how Cocoa collections define equality. Saying that two >> objects are "equal" means, by definition, that -[obj1 isEqual: obj2] >> returns true. > > This has nothing to do with -hash. > > P: Two objects are equal. > Q: They have the same hash. > > P -> Q. > > Note that Q does not imply P.
So, tell me how you can have two equal objects meet that condition, when the hash is based on the pointer value of self. -- Clark S. Cox III [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
