• 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: NumberFormatter Defaulting all values when input incorrect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NumberFormatter Defaulting all values when input incorrect


  • Subject: Re: NumberFormatter Defaulting all values when input incorrect
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 12 Jan 2009 14:27:44 -0800

On Jan 12, 2009, at 13:52, Walker Argendeli wrote:

I'm new to Cocoa and am working through Hillegass's 3rd edition book (Chapter 8). My problem is, I believe, linked to the number formatter. To summarize the application, you have a tableView with names for employees and raises. The raise column has a number formatter for percentage (raise is default 5.0%). If I have multiple employees in the tableView, and enter a number without a percentage or some other character that is not accepted, the problem occurs. It tells me there's a formatting error and tells me I can either accept that or discard changes. Regardless of which choice I make, all the other employees' raises are set to 500%.

It's a known bug in the formatter. See here:

	http://www.cocoabuilder.com/archive/message/cocoa/2008/7/20/213546

(particularly the last post from Apple's Chris Kane).


_______________________________________________

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


References: 
 >NumberFormatter Defaulting all values when input incorrect (From: Walker Argendeli <email@hidden>)

  • Prev by Date: Re: Xcode-like "Groups & Files" view: NSTreeController and/or core data?
  • Next by Date: Re: Highlighting an NSPopUpButtonCell subclass
  • Previous by thread: NumberFormatter Defaulting all values when input incorrect
  • Next by thread: Strange Webview Problem
  • Index(es):
    • Date
    • Thread