How should I declare a long in Objective-C? Is NSInteger appropriate?
Posted
by Brennan
on Stack Overflow
See other posts from Stack Overflow
or by Brennan
Published on 2010-06-06T16:55:46Z
Indexed on
2010/06/06
17:02 UTC
Read the original article
Hit count: 335
iphone
|objective-c
I see NSInteger is used quite often and the typedef for it on the iPhone is a long, so technically I could use it when I am expect int(64) values. But should I be more explicit and use something like int64_t or long directly? What would be the downside of just using long?
© Stack Overflow or respective owner