We have a group of NSManagedObjects of various types. Some of them have NSSet members of other NSManagedObjects. The problem is that I really need to override the hash methods and isEquals of the objects in the set, but they are NSManagedObjects. I'm having trouble getting multiple identical objects in a set. As far as I can tell, since the hash by default corresponds to the address of the object - all objects are different. Therefore, I need to override the hash and isEquals, but I see no way to do this.
We have a bunch of things in the System, and more comes through XML - sometimes existing objects are repeated. When they match, I do not want doublets to be added to the set.
source share