Friday, September 28, 2012

NSArray remove ObjectIdenticalTo VS removeObject:


NSArray remove ObjectIdenticalTo VS removeObject:

copy (and not paste!) from book BigNerd Ranch iOS programming (2012) page 214


  • removeObjectgoes to each object in the array and sends it the message isEqual:. A class can implement this method to return YES or NO based on its own determination
  • removeObjectIdenticalTo: removes an object if and only if it is exact same object as the one passed in this message. 

No comments:

Post a Comment