From 01169af4e2a0cb8bdae965758a51145edb739286 Mon Sep 17 00:00:00 2001 From: Adrian Hupka <6577198+Hupka@users.noreply.github.com> Date: Fri, 3 Jun 2022 19:01:08 +0200 Subject: [PATCH] Added `setWorksWhenModal` to `NSPanel` trait --- cocoa/src/appkit.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cocoa/src/appkit.rs b/cocoa/src/appkit.rs index d9fd16c..6d00d52 100644 --- a/cocoa/src/appkit.rs +++ b/cocoa/src/appkit.rs @@ -1813,6 +1813,7 @@ pub trait NSPanel: Sized { unsafe fn becomesKeyOnlyIfNeeded(self) -> BOOL; unsafe fn setFloatingPanel(self, floatingPanel: BOOL); unsafe fn floatingPanel(self) -> BOOL; + unsafe fn setWorksWhenModal(self, worksWithPanel: BOOL); } impl NSPanel for id { @@ -1833,6 +1834,10 @@ impl NSPanel for id { unsafe fn floatingPanel(self) -> BOOL { msg_send![self, isFloatingPanel] } + + unsafe fn setWorksWhenModal(self, worksWhenModal: BOOL) { + msg_send![self, setWorksWhenModal: worksWhenModal] + } } #[repr(i64)]