• 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 numbers 1000 and over not returned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localized numbers 1000 and over not returned


  • Subject: Localized numbers 1000 and over not returned
  • From: Kevin Hoctor <email@hidden>
  • Date: Wed, 22 Nov 2006 15:56:31 -0600

I can't find any known bugs or issues in the archives for this. I have multiple NSTextFields in an out of NSTableViews and they all have this same problem.

If I have the localized number format set to French (where 1,000.00 = 1 000,00) and I enter a value over 999.99 (or 999,99 localized), the following code returns a zero value (null string):

		newAdditionalAmount = [additionalAmountMsg floatValue];
		NSString *testStr = [additionalAmountMsg stringValue];

This works perfectly with U.S. formatting. The NSFormatter for the NSTextField in IB is set to Localize and Add 1000 Separators. If I enter a value less than 1000, it returns the correct number and string. Over that I get nothing.

Kevin Hoctor
No Thirst Software
http://nothirst.com



_______________________________________________

Cocoa-dev mailing list      (email@hidden)

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: Localized numbers 1000 and over not returned
      • From: Martin Wennerberg <email@hidden>
  • Prev by Date: Storing NSMutableDictionary in NSMutableArray
  • Next by Date: [ANN] SSCrypto framework update
  • Previous by thread: Re: Storing NSMutableDictionary in NSMutableArray
  • Next by thread: Re: Localized numbers 1000 and over not returned
  • Index(es):
    • Date
    • Thread