NSNumberFormatter separator issue
NSNumberFormatter separator issue
- Subject: NSNumberFormatter separator issue
- From: Keith Blount <email@hidden>
- Date: Thu, 29 Mar 2007 14:40:23 -0700 (PDT)
Hello,
This seems an obvious issue that must have been posted about before, but a search on comma, thousands, separator and formatter on CocoaBuilder yielded nothing.
I have a text field that is used to enter a target word count in my application. This has an NSNumberFormatter attached to it with thousand separators. It suffers from the following bug, though:
1. The user enters, say, 1000, and clicks okay.
2. Everything is fine - the target word count is set to 1000.
3. The user opens up the sheet containing the text field. The text field reads, "1,000" - that is, it shows the comma thousands separator, as it should.
4. Without changing anything, the user clicks, "OK" to confirm.
5. Now, the "1,000" gets changed to "1". It is as though the number formatter reads the comma for decimal point, even though the formatter placed the comma there in the first place.
Has anybody encountered this? I must be doing something pretty stupid here, but I would be grateful for pointers.
Many thanks in advance,
Keith
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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