title: Converting a octal String to Decimal in Objective-C?
body: <p>I trying to do conversions between Binary, Octal, Decimal and Hexadecimal in Objective-C.
  I had problems converting Octal to Decimal.</p>
  
  <p>I have tried the following: </p>
  
  <pre><code>NSString *decString = [NSString stringWithFormat:@"%d", 077];
  </code></pre>
  
  <p>It works fine, returning 63 as expected, but my Octal value is a NSString. How can I tell the computer that it is a Octal;</p>
  
  <p>I know there is a method called "scanHexInt:" which I used to convert Hexadecimal to decimal, but it seems there is no scanOctInt...</p>
  
  <p>Any help would be appreciated!</p>