title: When to use NSInteger vs. int
body: <p>When should I be using <code>NSInteger</code> vs. int when developing for iOS?  I see in the Apple sample code they use <code>NSInteger</code> (or <code>NSUInteger</code>) when passing a value as an argument to a function or returning a value from a function.</p>
  
  <pre><code>- (NSInteger)someFunc;...
  - (void)someFuncWithInt:(NSInteger)value;...
  </code></pre>
  
  <p>But within a function they're just using <code>int</code> to track a value</p>
  
  <pre><code>for (int i; i &lt; something; i++)
  ...
  
  int something;
  something += somethingElseThatsAnInt;
  ...
  </code></pre>
  
  <p>I've read (been told) that <code>NSInteger</code> is a safe way to reference an integer in either a 64-bit or 32-bit environment so why use <code>int</code> at all?</p>