Re: NSString -> NSNumber with NSString representing a big unsigned long
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.