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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com