On Feb 17, 2012, at 2:33 PM, Ben Kennedy wrote: > What value does NSString's isEqualToString: bring to the table over its > implementation of isEqual? Is it just a matter of foregoing an 'if ([obj > isKindOfClass:[NSString class])' construct at the front end? Put another > way, why does NSString provide isEqualToString: as a distinct method?
Type checking, and some performance optimizations too IIRC. Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com