Friday, May 5, 2006

NSCFBoolean Hashes Incorrectly

Nat! reports that [NSNumber numberWithInt:1] and [NSNumber numberWithBool:YES] are equal but have different hash codes because NSCFBoolean doesn’t override -[NSObject hash].

Comments RSS · Twitter

Leave a Comment