title: Using [[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]] to let the scheduled selectors fire
body: <p>In my application at some point I have a bunch of messages scheduled using <code>performSelector</code>.</p>
  
  <p>Under some conditions, while handling an UI action, I need to wait for all the currently scheduled selectors to fire.</p>
  
  <p>I could place my code in another method and schedule it using <code>performSelector:target:argument:order:modes:</code> with <code>order</code> value high enough to be sure it will fire last, but there are reasons why I think that would make an ugly solution.</p>
  
  <p>So I send <code>[[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]]</code> and it seems to work just like I need it to.</p>
  
  <p>Still, I'm not sure if that is a legitimate way to let the run loop roll for just one iteration. Also, are there any potential troubles associated with this approach?</p>