Related questions
How to convert An NSInteger to an int?
For example when passing a value message to an NSInteger instance like so
[a value] it causes an EXC_BAD_ACCESS.
So how to convert an NSInteger to int?
If it's relevant only small numbers < 32 are used.
NSLog/printf specifier for NSInteger?
A NSInteger is 32 bits on 32-bit platforms, and 64 bits on 64-bit platforms. Is there a NSLog specifier that always matches the size of NSInteger?
Setup
Xcode 3.2.5
llvm 1.6 compiler (this is important; gcc doesn't do this)
GCC_WARN_TYPECHECK_CALLS_TO_…
enum values: NSInteger or int?
tl;dr Version
How are the data types of an enum's constants guaranteed to be NSUInteger instead of unsigned int when declaring an enum thusly:
enum {
NSNullCellType = 0,
NSTextCellType = 1,
NSImageCellType = 2
};
typedef NSUInteger NSCellType;
The typedef to NSUInteger does not appear to …