On 6 Aug 2009, at 17:50, Martin Kalbfuß wrote:

When should I use the NS types? I can't see a reason for there exsistens. I'm
not sure if my sdl wrapper should use them.

NSInteger exists to make it easier for C89 code to be 64-bit safe. NSInteger is equivalent to C99's intptr_t; an integer which is guaranteed to be the same width as a pointer. You can safely cast between void* and NSInteger, but you can't (always) safely cast between void* and int.

David

_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to