This statement generates a macOS
'exit(0)' call which, when executed, terminates app execution normally1. and immediately. Not recommended for Cocoa-based apps.
Important Note For CocoaUI-based Apps (Cocoa)
It does not provide the app an opportunity to cleanup (via the usual app vectors such as:
_appShouldTerminate, _appWillTerminate, _appShouldTerminateAfterLastWindowClosed), and justs exits immediately.
1. 'normal' macOS termination involves flushng unwritten buffered data, closing all open files, removing temporary files etc. but please read the Important Note above.
stop; system statement; shutdown