Thanks for correcting that. I'd forgotten that long long existed.

--Daniel Richman


Kyle Sluder wrote:
On Sat, Mar 7, 2009 at 8:13 PM, Daniel Richman
<applemaill...@mm.danielrichman.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to