On Thu, Aug 20, 2009 at 1:37 PM, Kyle Sluder<kyle.slu...@gmail.com> wrote: > On Thu, Aug 20, 2009 at 1:33 PM, Clark Cox<clarkc...@gmail.com> 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 clarkc...@gmail.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com