• 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: Retrieve Default Currency Type in Mac, iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieve Default Currency Type in Mac, iPhone


  • Subject: Re: Retrieve Default Currency Type in Mac, iPhone
  • From: Ruotger Skupin <email@hidden>
  • Date: Mon, 16 Feb 2009 16:56:38 +0100

Hi Ben,

Be careful with your assumptions. Some Locales have the currency symbol after the number, e.g. German:

1.234,56 €

(note the decimal separator between the 4 and the 5 for additional scanning fun!)

Roddi


Am 16.02.2009 um 12:35 schrieb Ben:

I haven't checked the docs, but could you maybe scan the string up to the first numeric character and use that?

- Ben

On 16 Feb 2009, at 11:30, Tharindu Madushanka wrote:

Hi,
I want to get the currency type of iPhone default selected language. If I
add an NSNumberFormatter and format a number I will get a string with the
currency type. But I cannot sub string this and get the currency type since
it might vary the character size.
When international is selected as United States,
For example $ 123,290.00 , I want to get $ mark only.
TRY 2.500,00, I want to get TRY only.


Can I do this, Please explain me.

Thank you,
Tharindu

_______________________________________________

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

_______________________________________________

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: 
 >Retrieve Default Currency Type in Mac, iPhone (From: Tharindu Madushanka <email@hidden>)
 >Re: Retrieve Default Currency Type in Mac, iPhone (From: Ben <email@hidden>)

  • Prev by Date: Re: Show Panel in another Application
  • Next by Date: Re: CALayers Lost After Switching Window's ContentView
  • Previous by thread: Re: Retrieve Default Currency Type in Mac, iPhone
  • Next by thread: NSTimer Question
  • Index(es):
    • Date
    • Thread