NSNumberFormatter documentation error?
NSNumberFormatter documentation error?
- Subject: NSNumberFormatter documentation error?
- From: Andre Masse <email@hidden>
- Date: Sat, 30 Jul 2011 11:09:32 -0400
Hi,
According to the NSNumberFormatter documentation:
setGeneratesDecimalNumbers:
Controls whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects.
- (void)setGeneratesDecimalNumbers:(BOOL)flag
Parameters
flag
YES if the receiver should generate NSDecimalNumber instances, NO if it should generate NSNumber instances.
Discussion
The default is YES.
Dragging an NSNumberFormatter object in XCode 4.1, choosing "Mac OS X 10.4 + Default" and "Decimal" in the popup menus generate the following error at runtime when using values entered by the user in a tableview'cell:
-[__NSCFNumber decimalNumberByMultiplyingBy:]: unrecognized selector sent to instance 0x1067f3260
You have to choose "Mac OS X 10.4 + Custom" and select the checkbox "Generate Decimal Numbers". It looks like the default is "NO".
Do I misinterpret the documentation or should I file a bug on radar?
Thanks,
Andre Masse
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden