NSInteger
is just a typedef for a built-in integral type (e.g. int
or long
).
It is safe to compare with a == b
.
Other common operators behave predictably !=
, <=
, <
, >=
, Etc.
Finally, the NSInteger
base type is platform / architecture dependent. It is unsafe to assume that it will always be 32 or 64 bits.
source share