title: Trying to remove a decimal from NSString
body: <p>This is bizarre. </p>
  
  <p>Developing for the iPhone I have an NSString:</p>
  
  <pre><code> distanceFromTargetString = @"6178266.000000"
   // this is not actually code, but a value taken from elsewhere. It is a proper NSString though. 
  </code></pre>
  
  <p>When I use this </p>
  
  <pre><code>NSArray *listItems = [distanceFromTargetString componentsSeparatedByString:@"."];
  distanceFromTargetString = [listItems objectAtIndex:0];
  </code></pre>
  
  <p>or this</p>
  
  <pre><code> [distanceFromTarget setText: distanceFromTargetString];
  </code></pre>
  
  <p>I get something like this</p>
  
  <pre><code>-[NSDecimalNumber isEqualToString:]: unrecognized selector sent to instance 0x1cac40
  2011-07-21 14:29:24.226 AssassinBeta[7230:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSDecimalNumber isEqualToString:]: unrecognized selector sent to instance 0x1cac40'
  </code></pre>
  
  <p>Any ideas?</p>