• 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: NSLocale and currency symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLocale and currency symbols


  • Subject: Re: NSLocale and currency symbols
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 4 Mar 2010 10:37:40 +0000

On 4 Mar 2010, at 09:51, Frank Illenberger wrote:

> Hi,
>
> under Mac OS 10.6, an NSLocale seems to contain the information whether a currency symbol should be put before the amount or behind it, like in $100.00, or 100,00€.
> Sadly, I was not able to find a way to specify this using the NSLocale/CFLocale APIs. Is this a private piece of information? Does anybody know how I might create a locale with a defined currency symbol behavior?

Not sure if this will help or not.
You can access the currency symbol suffixes and prefixes from an NSNumberFormatter instance configured for currency.

- (NSString *)positivePrefix AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
- (void)setPositivePrefix:(NSString *)string AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;

- (NSString *)positiveSuffix AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
- (void)setPositiveSuffix:(NSString *)string AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;

- (NSString *)negativePrefix AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
- (void)setNegativePrefix:(NSString *)string AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;

- (NSString *)negativeSuffix AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
- (void)setNegativeSuffix:(NSString *)string AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com
>
> Thanks and cheers.
>
> Frank
>
>
> _______________________________________________
>
> 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: 
 >NSLocale and currency symbols (From: Frank Illenberger <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl select multiple cells
  • Next by Date: Re: NSSegmentedControl select multiple cells
  • Previous by thread: NSLocale and currency symbols
  • Next by thread: Re: NSLocale and currency symbols
  • Index(es):
    • Date
    • Thread