> On Sat, 2010/01/16, Ken Thomases <k...@codeweavers.com> wrote: >> On 2010 Jan 14, at 17:11, Carter R. Harrison wrote: >> My model is an NSMutableSet that contains >> NSMutableDictionaries. > > I think this is asking for trouble. A set of mutable > dictionaries doesn't make much sense. > > ..."Equal" is determined by the -isEqual: and -hash > methods, not by identity (memory location).
So, it's quite possible that he has a "hash" used by the NSMutableSet which doesn't depend on the contents of the mutable dictionary once it's been created. Still, though I can imagine someone wanting such a set-up, I have to wonder what purpose it serves, as opposed, e.g., to a mutable dictionary of dictionaries, or a mutable array of dictionaries. _______________________________________________ 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