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)]