On Wed, Aug 19, 2009 at 4:28 PM, Gideon King<gid...@novamind.com> wrote: > So do I need to override hash too? If so, are there any recommendations as > to how to determine the hash easily?
You need to override -hash for the simple reason that the documentation says you need to override -hash. That gives anyone else license to assume you implement -hash if you implement -isEqual. As for computing the hash itself, only you can answer that. The naïve option is to just return your self pointer, but that's not going to work well. --Kyle Sluder _______________________________________________ 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