Friday, September 28, 2012

Identical vs isEqual


Identical vs isEqual


  Identical vs isEqual

-(BOOL) isEqual: (id) other
-(NSUInteger)indexOfObjectIdenticalTo:(id)anObject;
if isEqual is overrided from the original NSObject simple implementation, usally isEqual means they have the same componets one by one example two strings are isEqual if they have the same letters in the same order.
Same pointers “== an Object”
Example two strings are Identical if they contain the exact same address.

No comments:

Post a Comment