Starts the main event loop.
- macOS 10.0+
The loop continues until a
terminate: message is received. Upon each iteration through the loop, the next available event from the window server is stored and then dispatched by sending it to
After creating the
NSApplication object, the
main function should load your app’s main nib file and then start the event loop by sending the
NSApplication object a
run message. If you create an Cocoa app project in Xcode, this
main function is implemented for you.