Re: Retrieve local currency format ?
Re: Retrieve local currency format ?
- Subject: Re: Retrieve local currency format ?
- From: mmalc crawford <email@hidden>
- Date: Tue, 28 Aug 2007 13:26:08 -0700
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