NSUInteger vs NSInteger, int vs unsigned, and similar cases
Posted
by Jesse Armand
on Stack Overflow
See other posts from Stack Overflow
or by Jesse Armand
Published on 2010-03-31T23:31:41Z
Indexed on
2010/03/31
23:33 UTC
Read the original article
Hit count: 427
Anyone have the expertise to explain when to use NSUInteger and when to use NSInteger?
I had seen Cocoa methods returning NSInteger even in cases where the returned value will always be unsigned.
What is the fundamental reason? Is NSInteger or int strictly limited to if we want to represent negative value?
© Stack Overflow or respective owner