Stops a modal event loop.
- macOS 10.0+
This method should always be paired with a previous invocation of
run is stopped with this method, it returns
NSModal. In macOS 10.9 and later, you can use this method to stop a
run loop outside of an event callback, such as from within a method repeatedly invoked by an
Timer object or a method running in a different thread.