pub unsafe trait NSAlertDelegate: NSObjectProtocol + MainThreadOnly {
// Provided method
fn alertShowHelp(&self, alert: &NSAlert) -> bool
where Self: Sized + Message { ... }
}Available on crate feature
NSAlert only.Expand description
A set of optional methods implemented by the delegate of an NSAlert object to respond to a user’s request for help.
See also Apple’s documentation
Provided Methods§
Sourcefn alertShowHelp(&self, alert: &NSAlert) -> bool
fn alertShowHelp(&self, alert: &NSAlert) -> bool
Sent to the delegate when the user clicks the alert’s help button. The delegate causes help to be displayed for an alert, directly or indirectly.
- Returns:
YESwhen the delegate displayed help directly,NOotherwise. WhenNOand the alert has a help anchor (helpAnchor), the application’s help manager displays help using the help anchor. - Discussion: The delegate implements this method only to override the help-anchor lookup behavior.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSAlertDelegate
Source§impl ProtocolType for dyn NSAlertDelegate
impl ProtocolType for dyn NSAlertDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".