title: How do I compare objects in Objective-C?
body: <p>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 same kind.</p>
  
  <p>So I can write my own code how each field of the class is compared.</p>
  
  <p>This is how I would do it. Or are there some predefined methods to do that? Like "isEqualTo" of the NSString class?</p>