title: Timeout a NSThread after a certain amount of time
body: <p>I have a NSThread that i would like to timeout after a certain amount of time. </p>
  
  <pre><code>[NSThread detachNewThreadSelector:@selector(someFuntion) toTarget:self withObject:nil];
  
  - (void) someFunction {
     //Some calculation that might take a long time.
     //if it takes more then 10 seconds i want it to end and display a error message
  }
  </code></pre>
  
  <p>Any help you can provide on this would be greatly appreciated.</p>
  
  <p>Thanks, </p>
  
  <p>Zen_silence </p>