title: iphone: performSelector: withObject: afterDelay: does not work with a background thread?
body: <p>I want to run a method in a background thread, the first method will run another method on the same (background) thread after some seconds. I wrote this:</p>
  
  <pre><code>- (IBAction)lauch:(id)sender
  {
      [self performSelectorInBackground:@selector(first) withObject:nil];
  
  }
  -(void) second {
      printf("second\n");
  }
  -(void) first {
      NSAutoreleasePool *apool = [[NSAutoreleasePool alloc] init];
      printf("first\n");
  
      [self performSelector:@selector(second) withObject:nil afterDelay:3];
  
      printf("ok\n");
      [apool release];
  }
  </code></pre>
  
  <p>but the second method is never called, why? and, how may i accomplish my goal?</p>
  
  <p>thanks</p>