Cocoa conventions for floats & ints
Cocoa conventions for floats & ints
- Subject: Cocoa conventions for floats & ints
- From: Bryan Pietrzak <email@hidden>
- Date: Wed, 28 Oct 2009 04:35:55 -0500
I've just started getting back into programming after being out of the
game for a few years. When I was last coding for a living it was with
Carbon. Now I'm jumping into Cocoa.
Just a quick question about conventions.
Previously it seemed the carbon world was moving to an abstract way to
declare numbers: UInt32, SInt64, Float32, etc. Is there a similar
convention in the Cocoa world? (Doesn't comprehensively seem to be in
my limited searching.)
This question seems more relevant than ever now that we fast
approaching a world where 64 bit is the norm and not the "future".
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.
Just looking for a little guidance on the Cocoa-way of things.
Thanks
Bryan
p.s. what a wonderful time to come back to the coding side of
things... carbon and codewarrior were old friends that served me well
for a long time, but cocoa and xcode are very exciting!
_______________________________________________
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