• 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
NSPopUpButtonCell NSDecimalNumber and locale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: newbie memory management
  • Next by Date: Re: Does this caution need fixed? (newb)
  • Previous by thread: Re: launchd daemon at boot time
  • Next by thread: Re: NSPredicateEditor
  • Index(es):
    • Date
    • Thread