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

Re: NSScanner troubles


  • Subject: Re: NSScanner troubles
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 10 Dec 2010 21:27:24 -0600

On Dec 10, 2010, at 9:06 PM, WT wrote:

> Note that the scanner returns the wrong result when the string to be parsed contains a '.' but I can't see why.

NSScanner doesn't understand group separators, regardless of locale.  You want to look into NSNumberFormatter.

Cheers,
Ken

_______________________________________________

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: 
 >NSScanner troubles (From: WT <email@hidden>)

  • Prev by Date: Re: NSScanner troubles
  • Next by Date: Re: NSScanner troubles
  • Previous by thread: Re: NSFormatter troubles (was: NSScanner troubles)
  • Next by thread: Encoding UIViews take long time..
  • Index(es):
    • Date
    • Thread