Apple's docs currently DO NOT DOCUMENT NSSet's concept of "identity".
I have some bugs that appear to come from Apple's code. For instance, "[NSMutableSet minusSet]" never works for me as documented - but I'm pretty sure it's because of "identity".
containsObject:
Returns a Boolean value that indicates whether a given object is present in the set.
YES if anObject is present in the set, otherwise NO.
What does that MEAN?
FYI things I've tried:
- implemented "isEqual:" on all classes in the set
- checked that all classes are the same class (no subclass / superclass confusion)
- implementd NSCopying on all classes in the set (no effect)