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(string[] args)
        {
            EtoBundle.Init();

            if (Control.Delegate == null)
            {
                Control.Delegate = this.AppDelegate ?? new AppDelegate();
            }
            NSApplication.Main(args);
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
 public ApplicationHandler()
 {
     NSApplication.Init();
     EtoBundle.Init();
     Control = NSApplication.SharedApplication;
 }