public void Run() { Monobjc.ObjectiveCRuntime.LoadFramework("Cocoa"); Monobjc.ObjectiveCRuntime.Initialize(); NSApplication.Bootstrap(); NSApplication.LoadNib("Main.nib"); NSApplication.RunApplication(); }
/// <summary> /// First method called. /// </summary> public static void Main() { try { // // NOTE: refer to monobjc documentation about this code. // load cocoa library ObjectiveCRuntime.LoadFramework("Cocoa"); ObjectiveCRuntime.Initialize(); // NSApplication.Bootstrap(); // load application bundle NSApplication.LoadNib("Window.nib"); NSApplication.RunApplication(); // } catch (Exception exc) { // log errors: if (logger.IsFatalEnabled) { logger.Fatal("An exception at the top level was catched.", exc); } } }