<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAlertDelegate/alertShowHelp(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSAlertDelegate(im)alertShowHelp:"
  },
  "title" : "alertShowHelp(_:)"
}
-->

# 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.

```
@MainActor optional func alertShowHelp(_ alert: NSAlert) -> Bool
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> when the delegate displayed help directly, <doc://com.apple.documentation/documentation/Swift/false> otherwise. When <doc://com.apple.documentation/documentation/Swift/false> and the alert has a help anchor ([`helpAnchor`](/documentation/AppKit/NSAlert/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.

## See Also

[`var showsHelp: Bool`](/documentation/AppKit/NSAlert/showsHelp)

Specifies whether the alert has a help button.

  [Dialogs and Special Panels](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Dialog/Dialog.html#//apple_ref/doc/uid/10000071i)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)