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

NSNumber Formatter with percent?


  • Subject: NSNumber Formatter with percent?
  • From: Todd Heberlein <email@hidden>
  • Date: Sat, 19 Jul 2008 17:13:57 -0700

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


  • Follow-Ups:
    • Re: NSNumber Formatter with percent?
      • From: Christopher Kane <email@hidden>
    • Re: NSNumber Formatter with percent?
      • From: Aron Nopanen <email@hidden>
  • Prev by Date: Re: Drawer examples?
  • Next by Date: Re: NSNumber Formatter with percent?
  • Previous by thread: Re: Outline View not retaining objects it uses. Why?
  • Next by thread: Re: NSNumber Formatter with percent?
  • Index(es):
    • Date
    • Thread