1 2 3 4 5
#include <Cocoa/Cocoa.h> int main(int argc, char *argv[]) { return NSApplicationMain(argc, const_cast<const char **>(argv)); }