How do I compare two objects of a custom class? My idea was to add an additional method to the class in which I can compare the current object with another object of the sam
The standard way is to override - (BOOL)isEqual:(id)anObject and - (NSUInteger)hash.
- (BOOL)isEqual:(id)anObject
- (NSUInteger)hash
You should read the documentation for NSObject protocol and this SO question has some interesting answers on how to write your hash method.