• 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 local currency format ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieve local currency format ?


  • Subject: Re: Retrieve local currency format ?
  • From: Eric MORAND <email@hidden>
  • Date: Wed, 29 Aug 2007 19:17:18 +0200

Still no luck with binding : I keep on having formatting errors.


Le 28 août 07 à 22:26, mmalc crawford a écrit :


On Aug 28, 2007, at 12:54 PM, Eric MORAND wrote:

I've already tried this :
[currencyFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[currencyFormatter setLocalizesFormat:YES];
[currencyFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];


It helps if you provide complete information about what you've tried...


The following works correctly for me using 10.4 SDK:

NSLocale * fr_FR = [[[NSLocale alloc] initWithLocaleIdentifier:@"fr_FR"] autorelease];
NSNumberFormatter *currencyFormatter = [[[NSNumberFormatter alloc] init] autorelease];


[currencyFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[currencyFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[currencyFormatter setLocale:fr_FR];
[currencyFormatter setLocalizesFormat:YES];


mmalc




_______________________________________________

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 local currency format ? (From: Eric MORAND <email@hidden>)
 >Re: Retrieve local currency format ? (From: Alastair Houghton <email@hidden>)
 >Re: Retrieve local currency format ? (From: Eric MORAND <email@hidden>)
 >Re: Retrieve local currency format ? (From: mmalc crawford <email@hidden>)
 >Re: Retrieve local currency format ? (From: Eric MORAND <email@hidden>)
 >Re: Retrieve local currency format ? (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: Line Numbers in Tables
  • Next by Date: interface to metadata list
  • Previous by thread: Re: Retrieve local currency format ?
  • Next by thread: CoreData/Bindings : adding/updating records with 2 entities at the same time
  • Index(es):
    • Date
    • Thread