• 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
Re: NSNumberFormatter and 10.4 behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSNumberFormatter and 10.4 behavior
      • From: mmalc crawford <email@hidden>
References: 
 >NSNumberFormatter and 10.4 behavior (From: Lee Ann Rucker <email@hidden>)
 >Re: NSNumberFormatter and 10.4 behavior (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: NSNumberFormatter and 10.4 behavior
  • Next by Date: Re: NSNumberFormatter and 10.4 behavior
  • Previous by thread: Re: NSNumberFormatter and 10.4 behavior
  • Next by thread: Re: NSNumberFormatter and 10.4 behavior
  • Index(es):
    • Date
    • Thread