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 (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 arch...@mail-archive.com

Reply via email to