public override void Init()
        {
            NSApplication.InitDrawingBridge();
            NSApplication.Init();

            IntegrateMenu();

            NSApplication.SharedApplication.Delegate = new AppDelegate();
            // New mono shows error when having this line but old dows not show the menu without it
            NSApplication.SharedApplication.FinishLaunching();
        }
예제 #2
0
 /// <summary>
 /// Initialize MonoMac. Use instead of the above functions when running
 /// in an embedded environment.
 /// </summary>
 internal static void MonoMacInit()
 {
     NSApplication.Init();
     NSApplication.InitDrawingBridge();
 }
 static void Main(string [] args)
 {
     NSApplication.Init();
     NSApplication.InitDrawingBridge();
     NSApplication.Main(args);
 }