pub unsafe trait NSAlertDelegate: NSObjectProtocol + MainThreadOnly {
// Provided method
unsafe 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§
Sourceunsafe fn alertShowHelp(&self, alert: &NSAlert) -> bool
unsafe 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:
YES
when the delegate displayed help directly,NO
otherwise. WhenNO
and 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.