• 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: NSInteger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSInteger


  • Subject: Re: NSInteger
  • From: "Shawn Erickson" <email@hidden>
  • Date: Wed, 3 Sep 2008 08:12:35 -0700

On Wed, Sep 3, 2008 at 7:58 AM, D.K. Johnston <email@hidden> wrote:

> I'm a bit puzzled by the new NSInteger type. Should I be using this now
> instead of int? (I'm just as puzzled by NSUInteger, of course.)

It is a type that will change size as needed based on compiling for
32b or 64b. It is meant to store integers (NSInteger) or unsigned
integers (NSUInteger) with largest range possible for the bit depth
you are targeting.

<http://developer.apple.com/documentation/Cocoa/Conceptual/Cocoa64BitGuide/64BitChangesCocoa/chapter_3_section_2.html>

CGFloat is a similar concept for floats.

<http://developer.apple.com/documentation/Cocoa/Conceptual/Cocoa64BitGuide/64BitChangesCocoa/chapter_3_section_4.html>

-Shawn
_______________________________________________

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: 
 >NSInteger (From: "D.K. Johnston" <email@hidden>)

  • Prev by Date: Re: [MEET] CocoaHeads Mac Developer Meetings
  • Next by Date: NSTextView's scroller problem when scaling
  • Previous by thread: NSInteger
  • Next by thread: Re: NSInteger
  • Index(es):
    • Date
    • Thread