Beispiel #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);
            }
        }
Beispiel #2
0
        public void Run()
        {
            if (!attached)
            {
                if (EnableNativeCrashReport)
                {
                    CrashReporter.Attach();
                }

                EtoBundle.Init();

                EtoFontManager.Install();

                if (Control.Delegate == null)
                {
                    Control.Delegate = AppDelegate ?? new AppDelegate();
                }
                NSApplication.Main(new string[0]);
            }
            else
            {
                Initialize(Control.Delegate as NSApplicationDelegate);
            }
        }