Re: NSUInteger = unsigned int?
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