title: How to I pass @selector as a parameter?
body: <p>For the method:</p>
  
  <pre><code>[NSThread detachNewThreadSelector:@selector(method:) toTarget:self withObject:(id)SELECTOR];
  </code></pre>
  
  <p>How do I pass in a @selector? I tried casting it to (id) to make it compile, but it crashes in runtime.</p>
  
  <hr>
  
  <p>More specifically, I have a method like this:</p>
  
  <pre><code>+(void)method1:(SEL)selector{
  [NSThread detachNewThreadSelector:@selector(method2:) toTarget:self withObject:selector];   
  }
  </code></pre>
  
  <p>It crashes. How do I pass in the selector without crashing, so that the new thread can call the selector when the thread is ready?</p>