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); } }
public void Run(string[] args) { EtoBundle.Init(); if (Control.Delegate == null) { Control.Delegate = this.AppDelegate ?? new AppDelegate(); } NSApplication.Main(args); }
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); } }
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; }