• 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
Localized number formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localized number formatting


  • Subject: Localized number formatting
  • From: Ivan C Myrvold <email@hidden>
  • Date: Tue, 26 Jul 2005 16:13:49 +0200

I am trying to use the formatter in IB, formatting according to our norwegian format. I attach the NSNumberFormatter to an NSTextField, and click on the row with a $ and two decimal places.
I now click on "Localize", and gets this: kr #,##0.00


It doesn't look right in the sample field. In norwegian format, we use a space as a 1000 separator, and comma for separating the digits and decimal digits. If I type 1064, I want to have it formatted to "kr 1 064,00". But if I try to type that into the field, I get a console message:

2005-07-26 16:09:02.169 Partos[2699] *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value


If I try to type a number under 1000, it gets formatted OK (500 is formatted as "kr 500,00").


Is this a bug in Cocoa? I am using XCode 2.0, but also had the same behaviour in earlier versions.

Ivan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Localized number formatting
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 2, Issue 1149
  • Next by Date: Re: NSMutableCopy Issue - New to Cocoa and Objective-C
  • Previous by thread: modal over modal question
  • Next by thread: Re: Localized number formatting
  • Index(es):
    • Date
    • Thread