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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com > > This email sent to jonat...@mugginsoft.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com