Re: Cocoa conventions for floats & ints
Re: Cocoa conventions for floats & ints
- Subject: Re: Cocoa conventions for floats & ints
- From: Greg Parker <email@hidden>
- Date: Thu, 29 Oct 2009 23:38:11 -0700
On Oct 28, 2009, at 2:35 AM, Bryan Pietrzak wrote:
I found this information:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Cocoa64BitGuide/64BitChangesCocoa/64BitChangesCocoa.html#//apple_ref/doc/uid/TP40004247-CH4-SW11
where NSInteger is discussed, but I was a bit surprised to not find
something along the lines of 8, 16, 32, 64 support for various
integer types. Or am I just missing it?
Now I did see a few references to the C99 types (int8_t, int16_t,
etc.), but it wasn't clear to me that this was really the Cocoa Way
to go.
Use the C99 types for explicitly-sized integers. Pretty much every
other sized-integer type is now present for historical reasons only.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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