• 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: Localized decimal point?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Localized decimal point? (From: Mark Dawson <email@hidden>)

  • Prev by Date: coreaudio sdk -- for jaguar & project buider?
  • Next by Date: Re: NSBox Title Position
  • Previous by thread: Re: Localized decimal point?
  • Next by thread: Re: Localized decimal point?
  • Index(es):
    • Date
    • Thread