On Feb 19, 2011, at 4:17 PM, Michael Crawford wrote: > I also assumed that whether or not the value is signed or unsigned; negative > or positive makes no difference as long as calling the same accessor method > on both NSNumber instances returns the same result.
I think this is wrong. I can't imagine why you assumed that some future method call would affect whether two NSNumbers are equal. They are equal if they contain the same value. You must realize that, for example, -boolValue would map a great many different NSNumbers to the same return value, but that doesn't imply that the NSNumbers are equal. Regards, Ken _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
