This module exports functions that are useful when working with the AppKit framework (or more generally, run loops).
Call a function on the main thread. Returns immediately.
Call a function on the main thread after a delay. Returns immediately.
Convert a method to a form that is suitable to use as the delegate callback for sheet methods.
Stops the event loop (if started by runConsoleEventLoop) or sends the NSApplication a terminate: message.
Run a NSRunLoop in a stoppable way (with stopEventLoop).
Run the event loop using NSApplicationMain and ask the user if we should continue if an exception is caught.
This function doesn’t return unless it throws an exception.