Re: Number formatting
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.