Re: NSNumberFormatter separator issue
Re: NSNumberFormatter separator issue
- Subject: Re: NSNumberFormatter separator issue
- From: Keith Blount <email@hidden>
- Date: Fri, 30 Mar 2007 08:30:55 -0700 (PDT)
Hi,
Many thanks for your reply. The version of the OS where this is an issue is 10.4.9 and earlier.
> And in general, if this is 10.4+ why are you explicitly setting the
> the separator rather than using a given style (which will adopt the
> user's preference)?
Hmm, this is interesting. I'm self-taught, so maybe I am missing something stupid. The way I set the formatter is by dragging the number formatter onto the text field in IB. I then set it to the 100, 0, -100 style and select to show separators. If I just drag the number formatter on without changing it, I get decimal places, which I don't want. What do you mean by using a "given style"? There does seem to be a bug in Tiger here, though.
Many thanks again for your reply and help.
All the best,
Keith
----- Original Message ----
From: mmalc crawford <email@hidden>
To: Keith Blount <email@hidden>
Cc: email@hidden
Sent: Friday, March 30, 2007 12:46:51 AM
Subject: Re: NSNumberFormatter separator issue
On Mar 29, 2007, at 2:40 PM, Keith Blount wrote:
> 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.
>
What version of the OS are you using?
How did you configure the formatter?
What is the current locale?
And in general, if this is 10.4+ why are you explicitly setting the
the separator rather than using a given style (which will adopt the
user's preference)?
mmalc
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
_______________________________________________
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