NSArray remove ObjectIdenticalTo VS removeObject:
copy (and not paste!) from book BigNerd Ranch iOS programming (2012) page 214
- removeObject: goes 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