Re: Problem with NSNumberFormatterCurrencyStyle on table cell
Re: Problem with NSNumberFormatterCurrencyStyle on table cell
- Subject: Re: Problem with NSNumberFormatterCurrencyStyle on table cell
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 4 Apr 2006 23:20:22 -0700
On Apr 4, 2006, at 10:48 PM, Tony S. Wu wrote:
the table column is set with a NSNumberFormatter with its number
style set as NSNumberFormatterCurrencyStyle.
[...]
[numberFormatter setFormatterBehavior: NSNumberFormatterBehavior10_4];
[numberFormatter setNumberStyle: NSNumberFormatterCurrencyStyle];
Did you set the formatter in Interface Builder?
"Important: The pre-Mac OS X v10.4 methods of NSNumberFormatter are
not compatible with the methods added for that release. An
NSNumberFormatter object should not invoke methods in these different
behavior groups indiscriminately. Use the old-style methods if you
have configured the number-formatter behavior to be
NSNumberFormatterBehavior10_0. Use the new methods instead of the
older-style ones if you have configured the number-formatter behavior
to be NSNumberFormatterBehavior10_4."
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSNumberFormatter.html>
See also <http://developer.apple.com/documentation/Cocoa/Conceptual/
DataFormatting/Articles/dfNumberFormatting10_4.html>.
mmalc
_______________________________________________
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