Re: NSString to Integer
Re: NSString to Integer
- Subject: Re: NSString to Integer
- From: Kyle Sluder <email@hidden>
- Date: Sat, 7 Mar 2009 20:26:00 -0500
On Sat, Mar 7, 2009 at 8:13 PM, Daniel Richman
<email@hidden> wrote:
> But your app could be running on a 32 bit only machine, so 64 bit is not a
> bet to make if you want this program to work on unknown machines. Use
> -doubleValue to get at least 64 bits, guaranteed.
!!! -doubleValue returns a double, which is a floating point number.
This is *not* what he wants -- he wants a 64-bit integer.
-longLongValue gives you a 64-bit integer on any platform. -intValue
gives you a 32-bit integer on any platform, and -integerValue gives
you a native-sized integer on any platform.
The 64-bit transition guide has more information:
http://developer.apple.com/DOCUMENTATION/Darwin/Conceptual/64bitPorting/intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001064-CH205-TPXREF101
--Kyle Sluder
_______________________________________________
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