mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-09 09:40:15 +08:00
use NSApplicationMain() instead of -[NSApplication run] in order to honor main nib file loading (if it exists)
This commit is contained in:
@@ -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__
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user