0

Trying out some older code and I've come across an IdentityDictionary. From what I know NSDictionary uses equality, not identity to compare Objects. Judging by it's use it seems I would need a mutable IdentityDictionary anyway?

I've read two threads on this and it seems to be quite difficult to do, Class clusters, hash functions and so on.

Does NSDictionary's objectForKey: rely on identity or equality

Implementing -hash / -isEqual: / -isEqualTo

How would one go about doing this?

unom
  • 11,438
  • 4
  • 34
  • 54

0 Answers0