title: How does one find a '.' in a string object in Object-C
body: <p>I am working on getting a simple calculator working as part of my adventure to learning Object-C and iOS development.</p>
  
  <p>In Object-C using NSString, how does one look for a period in a string?</p>
  
  <p>Based on the comments this is what I got so far.</p>
  
  <pre><code>NSString * tmp = [display text];
  
  NSLog(@"%@", tmp); // Shows the number on the display correctly
  
  int x = [tmp rangeOfString:@"."].location;
  
  NSLog(@"%i", x); // Shows some random signed number 
  
  if (x &lt; 0) {
      [display setText:[[display text] stringByAppendingFormat:@"."]]; 
  } 
  </code></pre>
  
  <p>It is still not working :(</p>