title: How to get the first N words from a NSString in Objective-C?
body: <p>What's the simplest way, given a string:</p>
  
  <pre><code>NSString *str = @"Some really really long string is here and I just want the first 10 words, for example";
  </code></pre>
  
  <p>to result in an NSString with the first <em>N</em> (e.g., 10) words?</p>
  
  <p>EDIT: I'd also like to make sure it doesn't fail if the <code>str</code> is shorter than N.</p>