What is NSApplication? How is it instantiated? What is NSApp?
NSApplication is the core of a Cocoa application. It is typically instantiated via NSApplicationMain or by calling NSApplication.shared(). NSApp is a global variable that holds the singleton instance of NSApplication. 2017-03-19