• 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: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?


  • Subject: Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 11 Dec 2008 14:57:30 -0700


On Dec 11, 2008, at 2:50 PM, Jesper Storm Bache wrote:

A potential source of confusing is that NSInteger in 64 bit is not an int, but a long. This means that NSInteger is 64 bit on 64 bit systems.
A general switch from int to NSInteger is therefore probably not appropriate, but a switch to NSInteger is needed when you want to store the result of any API that returns an NSInteger.


You're correct when it comes to handling formats of fixed size, but if you need a primitive's size to be the same no matter what, then you should probably be using int8_t, int32_t, int64_t, etc. instead of either int or NSInteger...

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


References: 
 >How can users check if their mac is 64-bit-capable? (From: Russ <email@hidden>)
 >Re: How can users check if their mac is 64-bit-capable? (From: Sherm Pendley <email@hidden>)
 >Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable? (From: Gustavo Pizano <email@hidden>)
 >Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable? (From: Nick Zitzmann <email@hidden>)
 >Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable? (From: Jesper Storm Bache <email@hidden>)

  • Prev by Date: Re: Arggg...overrelease in table view cell, but where?
  • Next by Date: Re: Resizing an image
  • Previous by thread: Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?
  • Next by thread: Re: Is it useful to make a 64 bit app? [Was]: How can users check if their mac is 64-bit-capable?
  • Index(es):
    • Date
    • Thread