Re: copy & isEqual nightmares
Re: copy & isEqual nightmares
- Subject: Re: copy & isEqual nightmares
- From: Ken Thomases <email@hidden>
- Date: Thu, 16 Feb 2012 10:30:49 -0600
On Feb 15, 2012, at 11:39 AM, Quincey Morris wrote:
> I was just acknowledging the difference between (say) a NSMutableDictionary whose internal state changes over time without affecting the objects it's isEqual to (just itself, in this case) [...]
A dictionary is equal to any other dictionary with equal keys and values. That's true for a mutable dictionary, too. Mutating a mutable dictionary will changes which other objects it's equal to.
-Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden