NSPopUpButtonCell NSDecimalNumber and locale
NSPopUpButtonCell NSDecimalNumber and locale
- Subject: NSPopUpButtonCell NSDecimalNumber and locale
- From: Cocoa <email@hidden>
- Date: Thu, 3 Jul 2008 22:52:19 +0200
Hello,
I encounter a problem with an NSPopUpButtonCell in a NSTableView
The column containing this cell is binded to an
NSUserDefaultsController (for Content and Content Values keys),
@"Selected Value" is stored using coredata and a property with a
decimal attribute
The values of the nsuserdefaultscontroller are nsdecimalnumber
I want to show localized values in the popupbuttoncell menu ie: 10.45
=> 10,45
The popupbuttoncell only show values with the american format: using
the . as decimal separator
This is the same thing if i use an nsnumberformatter for this
tablecolumn with setLocalizesFormat set to YES or if i use an
nsarraycontroller instead of an nsuserdefaultscontroller where values
are created using decimalNumberWithString: locale:
Is there a way to force NSPopUpButtonCell to use localized values ?
Thank You
Stéphane
_______________________________________________
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