• 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 setFormat: in 10.3.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumberFormatter setFormat: in 10.3.9


  • Subject: Re: NSNumberFormatter setFormat: in 10.3.9
  • From: Neil Allain <email@hidden>
  • Date: Fri, 23 Jan 2009 15:21:36 -0600

I believe that in 10.5, the default formatter behavior is 10.4 instead of 10.0 (in 10.4 the default behavior was still 10.0). Check out:

http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/DataFormatting/DataFormatting.html

Neil

On Jan 23, 2009, at 12:30 PM, Jonathan Fewtrell wrote:

My app, developed on 10.5 but targeted at 10.3.9 and above, contains the following code:

NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setFormat:@"#0;#0;#0"];

It compiles without warnings.

When running on 10.3.9 it crashes with EXC_BAD_ACCESS in - [NSNumberFormatter setFormat:]. It works fine on 10.4 and 10.5.

For such a simple bit of code, I struggle to see what could be wrong. A previous version, developed on 10.4, did not show this problem, so I'm wondering if it's a build setting problem. If it is, I can't see which one.

I can see from the archives that NSNumberFormatter has various issues, but they do not seem to me to be relevant here.

Any insight appreciated.
_______________________________________________

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


References: 
 >NSNumberFormatter setFormat: in 10.3.9 (From: Jonathan Fewtrell <email@hidden>)

  • Prev by Date: Caution Icon
  • Next by Date: Dynamically set UILabel position ?
  • Previous by thread: NSNumberFormatter setFormat: in 10.3.9
  • Next by thread: Re: NSNumberFormatter setFormat: in 10.3.9
  • Index(es):
    • Date
    • Thread