The code wasn't working as I expected because I'd failed to initialise
the setOfValuesForCharacteristicTypes NSMutableSet which I was using
check the hashFromCharacteristicTypes before sending the hash to the
I'd presumed it was a problem with set object thinking they weren't
equal. However, Cocoa's clever enough to know when two sets are really
identical; i.e. :
On 15 Jan 2009, at 15:14, Benjamin Stiglitz wrote:
I'm trying to create an NSDictionary that uses key based upon the
contents of a NSSet (specifically a set of NSManagedObjectID's).
I'm currently at a bit loss as to how to do it. My various attempts
at a hash based solution (see below) don't appear to be working.
Are you creating a map from the NSSet to something else? An
NSMapTable may be more appropriate.