title: ios: NSArray containsObject: NSIndexPath
body: <p>I'm a little bit confused about NSArray containsObject method. Does this method compares pointers to objects or exactly content of them? To be more specific: i have got an array of NSIndexPath objects, created somewhere before, and now i want to check, if there is an NSIndexPath object with row = 2 and section = 1. If i write the following code, would it work? </p>
  
  <pre><code>[[self arrayOfPathes] containsObject: [NSIndexPath indexPathForItem: 2 inSection: 1]];
  </code></pre>
  
  <p>I've tested that code, and it worked for me, but i had some bad experience with comparison of pointers instead of object's content beforehand (btw, that code worked for me, and was approved for the app store, but late many of users reported about the bug made by it).</p>