示例#1
0
        public void Run()
        {
            if (!attached)
            {
                if (EnableNativeCrashReport)
                {
                    CrashReporter.Attach();
                }

#if Mac64
                // convert objective-c exceptions into .NET exceptions
                if (EnableNativeExceptionTranslation)
                {
                    NSSetUncaughtExceptionHandler(UncaughtExceptionHandler);
                }
#endif


                EtoBundle.Init();

                EtoFontManager.Install();

                if (Control.Delegate == null)
                {
                    Control.Delegate = AppDelegate ?? new AppDelegate();
                }
                NSApplication.Main(new string[0]);
            }
            else
            {
                Initialize(Control.Delegate as NSApplicationDelegate);
            }
        }
示例#2
0
        public void Run(string[] args)
        {
            EtoBundle.Init();

            if (Control.Delegate == null)
            {
                Control.Delegate = this.AppDelegate ?? new AppDelegate();
            }
            NSApplication.Main(args);
        }
示例#3
0
        public void Run()
        {
            if (!attached)
            {
                EtoBundle.Init();

                if (Control.Delegate == null)
                {
                    Control.Delegate = AppDelegate ?? new AppDelegate();
                }
                NSApplication.Main(new string[0]);
            }
            else
            {
                Initialize(Control.Delegate as NSApplicationDelegate);
            }
        }
示例#4
0
        public void Run()
        {
            if (!attached)
            {
                if (EnableNativeCrashReport)
                {
                    CrashReporter.Attach();
                }

                EtoBundle.Init();

                if (Control.Delegate == null)
                {
                    Control.Delegate = AppDelegate ?? new AppDelegate();
                }
                NSApplication.Main(new string[0]);
            }
            else
            {
                Initialize(Control.Delegate as NSApplicationDelegate);
            }
        }
示例#5
0
 public ApplicationHandler()
 {
     NSApplication.Init();
     EtoBundle.Init();
     Control = NSApplication.SharedApplication;
 }