use NSApplicationMain() instead of -[NSApplication run] in order to honor main nib file loading (if it exists)

This commit is contained in:
Laurent Sansonetti
2013-05-05 20:45:15 +02:00
parent b43f55b3f0
commit 5cfe717841

View File

@@ -115,7 +115,7 @@ main(int argc, char **argv)
#{define_global_env_txt}
NSApplication *app = [NSApplication sharedApplication];
[app setDelegate:[NSClassFromString(@"#{delegate_class}") new]];
[app run];
NSApplicationMain(argc, (const char **)argv);
rb_exit(0);
#if !__LP64__
}