Re: NSNumberFormatter and 10.4 behavior
Re: NSNumberFormatter and 10.4 behavior
- Subject: Re: NSNumberFormatter and 10.4 behavior
- From: Lee Ann Rucker <email@hidden>
- Date: Tue, 17 Jul 2007 18:45:52 -0700
It's explicit that formatters in nibs are 10.0, but this was a
formatter created entirely in code. I set a breakpoint on
setDefaultFormatterBehavior and found it was getting called twice -
once when I did it, and later in NSNumberFormatter initialize.
The doc says the nib formatters will *ignore* the default, but says
nothing at all about *changing* it.
On 17 juil. 07, at 16:06, mmalc crawford wrote:
On Jul 17, 2007, at 11:13 AM, Lee Ann Rucker wrote:
Tried creating the formatter in code instead of the nib and
discovered that even though I'd already called [NSNumberFormatter
setDefaultFormatterBehavior: once, it was getting called again,
from [NSNumberFormatter initialize], and getting reset to 10.0.
The Data Formatting Programming Guide for Cocoa is quite explicit
about this:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
DataFormatting/Articles/dfCells.html>
mmalc
_______________________________________________
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