• 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: Number formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number formatting


  • Subject: Re: Number formatting
  • From: j o a r <email@hidden>
  • Date: Wed, 8 Oct 2003 09:01:52 +0200

Apparently that's a workaround for a bug with "setLocalizesFormat:", it's in the list archives. I agree, it looks totally weird!

With this in mind it's a good thing that the first formatter is autoreleased, as we'll loose all references to it after this little trick. The returned formatter is also autoreleased, but that's probably per design - as it's not an instance variable.

j o a r

On 2003-10-08, at 08.44, Nick Zitzmann wrote:

[numberFormatter setLocalizesFormat:YES];
numberFormatter = [NSUnarchiver unarchiveObjectWithData: [NSArchiver archivedDataWithRootObject:numberFormatter]];

To quote the old MPW C compiler: "Huh?"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Number formatting
      • From: John MacMullin <email@hidden>
References: 
 >Re: Number formatting (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: CFRunLoop usage
  • Next by Date: Re: different launch methods
  • Previous by thread: Re: Number formatting
  • Next by thread: Re: Number formatting
  • Index(es):
    • Date
    • Thread