Instance Property

showsHelp

Specifies whether the alert has a help button.

Declaration

@property BOOL showsHelp;

Discussion

Set this property’s value to YES to specify that the alert has a help button, or NO to specify it does not.

When a user clicks an alert’s help button, the alert delegate (delegate) receives an alertShowHelp: message. The delegate is responsible for displaying the help information related to this particular alert.

Clicking an alert’s help button can alternately cause the openHelpAnchor:inBook: message to be sent to the app’s help manager with a nil book and the anchor specified by the helpAnchor property, if any of the following conditions are true:

  • There is no alert delegate.

  • The alert delegate does not implement alertShowHelp:.

  • The alert delegate implements alertShowHelp: but returns NO. When this is the case, an exception is raised if no help anchor is set.

See Also

Configuring Alerts

- layout

Specifies that the alert must do immediate layout instead of lazily just before display.

alertStyle

Indicates the alert’s severity level.

accessoryView

The alert’s accessory view.

helpAnchor

The alert’s HTML help anchor.

delegate

The alert’s delegate.