• 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: NSString -> NSNumber with NSString representing a big unsigned long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString -> NSNumber with NSString representing a big unsigned long


  • Subject: Re: NSString -> NSNumber with NSString representing a big unsigned long
  • From: Nathan Day <email@hidden>
  • Date: Tue, 9 Jul 2002 00:28:36 +0930

You could use NSScanners scanLongLong:

On Monday, July 8, 2002, at 11:58 PM, Stiphane Sudre wrote:

Using [myString doubleValue] or intValue] produces a wrong value.

I'm a bit astonished that there is no [NSNumber numberWithString:] method in Foundation....

Currently, I'm using sscanf to get the correct value for NSNumber but if there's a cleaner way, I'm ready to use it.
_______________________________________________
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.

References: 
 >NSString -> NSNumber with NSString representing a big unsigned long (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: NSRect and the origin
  • Next by Date: Re: NSRect and the origin
  • Previous by thread: NSString -> NSNumber with NSString representing a big unsigned long
  • Next by thread: fill tableview exactly with tablecolumns
  • Index(es):
    • Date
    • Thread