public MacPlatformService() { if (IntPtr.Size == 8) { throw new Exception("Mac integration is not yet 64-bit safe"); } if (initedGlobal) { throw new Exception("Only one MacPlatformService instance allowed"); } initedGlobal = true; timer.BeginTiming(); systemVersion = Carbon.Gestalt("sysv"); mimemap = new Lazy <Dictionary <string, string> > (LoadMimeMapAsync); //make sure the menu app name is correct even when running Mono 2.6 preview, or not running from the .app Carbon.SetProcessName(BrandingService.ApplicationName); CheckGtkVersion(2, 24, 14); Xwt.Toolkit.CurrentEngine.RegisterBackend <IExtendedTitleBarWindowBackend, ExtendedTitleBarWindowBackend> (); Xwt.Toolkit.CurrentEngine.RegisterBackend <IExtendedTitleBarDialogBackend, ExtendedTitleBarDialogBackend> (); }
public MacPlatformService() { if (initedGlobal) { throw new Exception("Only one MacPlatformService instance allowed"); } initedGlobal = true; timer.BeginTiming(); systemVersion = Carbon.Gestalt("sysv"); mimemap = new Lazy <Dictionary <string, string> > (LoadMimeMapAsync); //make sure the menu app name is correct even when running Mono 2.6 preview, or not running from the .app Carbon.SetProcessName(BrandingService.ApplicationName); Cocoa.InitMonoMac(); CheckGtkVersion(2, 24, 14); timer.Trace("Installing App Event Handlers"); GlobalSetup(); timer.EndTiming(); }
static MacPlatformService() { timer.BeginTiming(); systemVersion = Carbon.Gestalt("sysv"); LoadMimeMapAsync(); CheckGtkVersion(2, 24, 0); //make sure the menu app name is correct even when running Mono 2.6 preview, or not running from the .app Carbon.SetProcessName(BrandingService.ApplicationName); MonoDevelop.MacInterop.Cocoa.InitMonoMac(); timer.Trace("Installing App Event Handlers"); GlobalSetup(); timer.EndTiming(); }
public void TestGestalt() { int majorVersion = Carbon.Gestalt("sys1"); Assert.AreEqual(majorVersion, 10, "Something is wrong\t"); }
public void TestGestalt() { int majorVersion = Carbon.Gestalt("sys1"); Assert.AreEqual(majorVersion, 10); }