From 5cfe717841a56ba86b72fe38fb8e96e361fbd6c3 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Sun, 5 May 2013 20:45:15 +0200 Subject: [PATCH] use NSApplicationMain() instead of -[NSApplication run] in order to honor main nib file loading (if it exists) --- lib/motion/project/template/osx/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/project/template/osx/config.rb b/lib/motion/project/template/osx/config.rb index cc6e230a..dfa9d5eb 100644 --- a/lib/motion/project/template/osx/config.rb +++ b/lib/motion/project/template/osx/config.rb @@ -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__ }