On 22 Apr '08, at 8:19 AM, Dave Camp wrote:
The problem is that I get the warning "initialization from distinct
Objective-C type" when I do this, because the NSNumber class methods
return a specific type instead of id.
It's safe; you'll just need to cast the return value to
(NSDecimalNum
After some testing, it appears that calling NSDecimalNumber with class
methods of it's NSNumber parent class return the expected
NSDecimalNumber object. For example, [[NSDecimalNumber
numberWithDouble:1.1] isKindOfClass:[NSDecimalNumber class]] returns
YES (and the resulting object has the