objective-cnsinteger

Why is there NSInteger and not NSLong or even NSLongLong?


NSInteger is integer object. So surely there should be long object?


Solution

  • NSInteger and NSUInteger are platform specific, so on 32 bit system is declared as an int and on 64 bit system it is declared as a long.