pub unsafe trait NSObjectQLPreviewPanelController:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn acceptsPreviewPanelControl(
&self,
panel: Option<&QLPreviewPanel>,
) -> bool { ... }
unsafe fn beginPreviewPanelControl(&self, panel: Option<&QLPreviewPanel>) { ... }
unsafe fn endPreviewPanelControl(&self, panel: Option<&QLPreviewPanel>) { ... }
}QLPreviewPanel only.Expand description
Category “QLPreviewPanelController” on NSObject.
Methods to implement by any object in the responder chain to control the Preview Panel
QLPreviewPanel shows previews for items provided by the first object in the responder chain accepting to control it. You generally implement these methods in your window controller or delegate. You should never try to modify Preview panel state if you’re not controlling the panel.
Provided Methods§
Sourceunsafe fn acceptsPreviewPanelControl(
&self,
panel: Option<&QLPreviewPanel>,
) -> bool
Available on crate feature objc2-app-kit only.
unsafe fn acceptsPreviewPanelControl( &self, panel: Option<&QLPreviewPanel>, ) -> bool
objc2-app-kit only.Sent to each object in the responder chain to find a controller.
Parameter panel: The Preview Panel looking for a controller.
Returns: YES if the receiver accepts to control the panel. You should never call this method directly.
§Safety
panel might not allow None.
Sourceunsafe fn beginPreviewPanelControl(&self, panel: Option<&QLPreviewPanel>)
Available on crate feature objc2-app-kit only.
unsafe fn beginPreviewPanelControl(&self, panel: Option<&QLPreviewPanel>)
objc2-app-kit only.Sent to the object taking control of the Preview Panel.
Parameter panel: The Preview Panel the receiver will control.
The receiver should setup the preview panel (data source, delegate, binding, etc.) here. You should never call this method directly.
§Safety
panel might not allow None.
Sourceunsafe fn endPreviewPanelControl(&self, panel: Option<&QLPreviewPanel>)
Available on crate feature objc2-app-kit only.
unsafe fn endPreviewPanelControl(&self, panel: Option<&QLPreviewPanel>)
objc2-app-kit only.Sent to the object in control of the Preview Panel just before stopping its control.
Parameter panel: The Preview Panel that the receiver will stop controlling.
The receiver should unsetup the preview panel (data source, delegate, binding, etc.) here. You should never call this method directly.
§Safety
panel might not allow None.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.