• 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
Re: NSNumber Formatter with percent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber Formatter with percent?


  • Subject: Re: NSNumber Formatter with percent?
  • From: Aron Nopanen <email@hidden>
  • Date: Sun, 20 Jul 2008 12:25:48 +1200

This is a known bug which has been raised with Apple.
I think a workaround is to use the 10.0 compatibility mode, as illustrated in the book...


-Aron

On 20/07/2008, at 12:13 PM, Todd Heberlein wrote:

Hi all,

(Using Xcode 3.1)

I was working through Hillegass's latest book and chapter 8 has me applying an NSNumberFormatter to one of the columns of a table view. Unfortunately I get unexpected behavior when I modify one of the values in the column. For example, if I add several employees (which have a default value of 5%), then I modify one of the numbers (say to 7%) then *all* the other number values get displayed as 500%. Furthermore, all new values are automatically displayed with a raise of 500% (as opposed to just 5%).

It is as if the Multiplied field of the NSNumberFormatter is changed from 1 (which I set) to 100 for all cells.

I don't seem to see this behavior when the NSNumberFormatter has a different style (say "Decimal").

Am I doing something wrong? If not, is this a known problem, or should I file a bug report?

Thanks,

Todd

_______________________________________________

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: NSNumber Formatter with percent?
      • From: Todd Heberlein <email@hidden>
References: 
 >NSNumber Formatter with percent? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: NSNumber Formatter with percent?
  • Next by Date: Re: Handling key equivalents in a controller class?
  • Previous by thread: NSNumber Formatter with percent?
  • Next by thread: Re: NSNumber Formatter with percent?
  • Index(es):
    • Date
    • Thread