Re: Localized decimal point?
Re: Localized decimal point?
- Subject: Re: Localized decimal point?
- From: Ken Ferry <email@hidden>
- Date: Mon, 6 Dec 2004 18:38:56 -0500
On Mon, 6 Dec 2004 14:20:46 -0800, Mark Dawson <email@hidden> wrote:
> I'm new to Cocoa, and haven't seen this quite asked:
>
> I want to write a subclass of NSFormatter. One piece would validate
> the input (in isPartialStringValid). I want to allow decimal
> points--however, I also want this to be correct localizing-wise.
> How would I figure out what the current decimal point character is?
>
> Thanks!
[[NSUserDefaults standardUserDefaults] objectForKey:NSDecimalSeparator]
See the the NSUserDefaults docs[1] for other useful keys.
-Ken
[1]: <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSUserDefaults.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden