Re: Retrieve local currency format ?
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