Re: NSScanner troubles
Re: NSScanner troubles
- Subject: Re: NSScanner troubles
- From: WT <email@hidden>
- Date: Sat, 11 Dec 2010 10:36:56 -0200
On Dec 11, 2010, at 6:03 AM, Ron Fleckner wrote:
> Hi,
>
> sorry if I'm way off the mark here, but wouldn't the best thing to use be NSScanner *scanner = [NSScanner localizedScannerWithString:[sender stringValue]];? Then you don't have to worry about the specifics of number formatting in various locales. Please let me know if I've missed the point.
>
> Ron
Hi Ron,
+localizedScannerWithString uses the user's default locale. I'm parsing strings from a web service and they're in a fixed locale, which may be different from the user's choice.
WT_______________________________________________
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