• 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
Why does default NSDateFormatter in IB ignore thousands separator?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does default NSDateFormatter in IB ignore thousands separator?


  • Subject: Why does default NSDateFormatter in IB ignore thousands separator?
  • From: Sean McBride <email@hidden>
  • Date: Wed, 02 Nov 2016 12:58:09 -0400
  • Organization: Rogue Research Inc.

Hi all,

If I drag a default NSNumberFormatter from IB's 'object library' into my xib and wire it to an NSTextField my numbers don't display the thousands separator.  The "localize format" checkbox is checked by default; the tooltip for that checkbox says thousands separators should be applied.

Looking at the .xib in a text editor, the formatter is represented as:

 <numberFormatter formatterBehavior="default10_4" usesGroupingSeparator="NO" groupingSize="0" minimumIntegerDigits="0" maximumIntegerDigits="42" id="AlZ-Ed-xTo" userLabel="myFormatter"/>

I guess the "usesGroupingSeparator="NO"" explains things. :)

In 'System Preferences > Language&Region > Advanced > General' there is a setting to choose the thousands separator, mine is set to 'space'.

Why on Earth does a default NSNumberFormatter ignore the user's choice?  Am I alone thinking this is buggy?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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


  • Follow-Ups:
    • Re: Why does default NSDateFormatter in IB ignore thousands separator?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Is NSCollectionView size not controllable in 10.10?
  • Next by Date: Crash in addSubview: when compiled with SDK > 10.9
  • Previous by thread: Re: Is NSCollectionView size not controllable in 10.10?
  • Next by thread: Re: Why does default NSDateFormatter in IB ignore thousands separator?
  • Index(es):
    • Date
    • Thread