• 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: Jonathan Fewtrell <email@hidden>
  • Date: Sat, 24 Jan 2009 11:23:24 +0000


On 24 Jan 2009, at 09:27, Kyle Sluder wrote:

On Sat, Jan 24, 2009 at 3:49 AM, Jonathan Fewtrell
<email@hidden> wrote:
Yes, I saw that. Maybe I misunderstood it. I thought that if the app was
running under 10.3.9 the formatter would always be created as 10.0 format
since the 10.4 format stuff didn't exist in the 10.3 frameworks. Isn't that
right?

Yes, that's correct. Your format string seems to be correct as well.

Are you sure you haven't called a 10.4-only method against the number
formatter before calling -setFormat: ?

Yes. The only possibly relevant code I have is in the class's +initialize method:


+ (void)initialize
{
if ( [NSNumberFormatter instancesRespondToSelector:@selector(setFormatterBehavior:)] ) {
NSLog(@"They do respond");
[NSNumberFormatter setDefaultFormatterBehavior:1000];
}
}


I put this in to force 10.0 behaviour when running on 10.5. The log message is not called on 10.3.9, confirming that the +setDefaultFormatterBehavior method is not called under 10.3.9. Anyway, the problem still exists even if I remove the +initialize method.

I've also tried different format strings. And retyping the whole thing to make sure no invisible characters crept in. Makes no difference.

Bafflement reigns.


_______________________________________________

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: 
 >Re: NSNumberFormatter setFormat: in 10.3.9 (From: Jonathan Fewtrell <email@hidden>)
 >Re: NSNumberFormatter setFormat: in 10.3.9 (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Targetting Tiger
  • Next by Date: Forcing allocation of a subclass
  • Previous by thread: Re: NSNumberFormatter setFormat: in 10.3.9
  • Next by thread: Start traces with CrashReporter
  • Index(es):
    • Date
    • Thread