• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSNumberFormatter documentation error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSNumberFormatter documentation error?
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?
  • Next by Date: Re: Fastest high-quality thumbnail display
  • Previous by thread: Section header artifacts in popover
  • Next by thread: Re: NSNumberFormatter documentation error?
  • Index(es):
    • Date
    • Thread