How does -[NSRunLoop performBlock:] interact with run loop modes?

The documentation is silent on this question. I can imagine several possibilities:

  • The block is performed regardless of the run loop mode.
  • The block is performed in the default run loop mode.
  • The block is performed in any of the common run loop modes.

(I shouldn't have to write a test program to figure this out!)

-performBlock: is equivalent to calling -performInModes:block: while passing in an array containing the default run loop mode.

The documentation is silent on this question.

Please do file a bug against the docs about this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How does -[NSRunLoop performBlock:] interact with run loop modes?
 
 
Q