public CocoaApplication() { Factory = new CocoaUiFactory(); SynchronizationContext = new CocoaSynchronizationContext(); Handle = AppKit.Call("NSApplication", "sharedApplication"); appDelegate = AppDelegateDefinition.CreateInstance(this); ObjC.Call(Handle, "setActivationPolicy:", IntPtr.Zero); ObjC.Call(Handle, "setDelegate:", appDelegate.Handle); ObjC.SetProperty(AppKit.GetClass("NSWindow"), "allowsAutomaticWindowTabbing", false); }