Localized numbers 1000 and over not returned
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