NSAlertDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.6 and later.
Declared in
NSAlert.h
Companion guides
Related sample code

Overview

The NSAlertDelegate protocol defines the optional methods implemented by delegates of NSAlert objects.

Tasks

Displaying Help

Instance Methods

alertShowHelp:

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.

- (BOOL)alertShowHelp:(NSAlert *)alert
Return Value

YES when the delegate displayed help directly, NO otherwise. When NO and the alert has a help anchor (setHelpAnchor:), 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.

Availability
  • Available in OS X v10.3 and later.
  • Available as part of an informal protocol prior to OS X v10.6.
See Also
Declared In
NSAlert.h