Both the following resolve to True:
1)
@"foo" == @"foo" (is True)
2)
NSString *myString1 = @"foo";
NSString *myString2 = @"foo";
myString1 == myString2 (is True)
However, there are definitely times where two NSStrings cannot be compared using the equality operator, and [myString1 isEqualToString:myString2] is required instead. Can someone shed some light on this?
Thanks, Yarin