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

NSString -> NSNumber with NSString representing a big unsigned long


  • Subject: NSString -> NSNumber with NSString representing a big unsigned long
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 8 Jul 2002 16:28:23 +0200

Is there a clean way to make a NSNumber from a NSString when the NSString represents a big unsigned long number?

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.
  • Follow-Ups:
    • Re: NSString -> NSNumber with NSString representing a big unsigned long
      • From: Nathan Day <email@hidden>
  • Prev by Date: NSTableView: Autosave name disabled in InterfaceBuilder
  • Next by Date: fill tableview exactly with tablecolumns
  • Previous by thread: NSTableView: Autosave name disabled in InterfaceBuilder
  • Next by thread: Re: NSString -> NSNumber with NSString representing a big unsigned long
  • Index(es):
    • Date
    • Thread