> OK, so this discussion is getting a little crazy :-)

Agreed.

> The -hash method is important for objects that are used as keys in
> associative collections.
> [snip]
> So, in practice, it's perfectly safe in 99.9% of cases to base your
> hash off your object's properties.  In the specific case when you're
> mutating objects that are keys in associative collections
> (NSDictionary and NSSet being the primary examples, along with their
> CoreFoundation counterparts) ...

Is there any way that you can tell that some higher-level technology you are 
using (CoreData?) is putting your objects into an NSSet?  That's presumably a 
hidden implementation detail which you can't assume one way or the other with 
any safety?
_______________________________________________

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]

Reply via email to