• 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: NSUInteger = unsigned int?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUInteger = unsigned int?


  • Subject: Re: NSUInteger = unsigned int?
  • From: Dave DeLong <email@hidden>
  • Date: Sun, 14 Nov 2010 08:35:58 -0700

Further down in the document (In the "Platform Dependencies" section), it says you should use %ld or %lx for NSInteger and cast it to a long, and %lu or %lx for an NSUInteger and cast it to an unsigned long.

NSUInteger is typedef'd to either an unsigned int or an unsigned long, depending on your platform.

Cheers,

Dave

On Nov 14, 2010, at 8:33 AM, William Squires wrote:

> In the "String Programming Guide" under "String Format Specifiers", it says "%u or %U" for unsigned 32 bit integers. Is this what NSUInteger is typedef'd to? Or do I need "%qu" instead?
>
> _______________________________________________
>
> 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

_______________________________________________

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: 
 >NSUInteger = unsigned int? (From: William Squires <email@hidden>)

  • Prev by Date: NSUInteger = unsigned int?
  • Next by Date: Re: NSUInteger = unsigned int?
  • Previous by thread: NSUInteger = unsigned int?
  • Next by thread: Re: NSUInteger = unsigned int?
  • Index(es):
    • Date
    • Thread