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 correct value)
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.
My question is: is this a bug in the NSNumber headers that I should
report, or is this unsafe code and I shouldn't be doing this?
Thanks,
Dave
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]