<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSHelpManager",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSHelpManager"
  },
  "title" : "NSHelpManager"
}
-->

# NSHelpManager

An object for displaying online help for an app.

```
@MainActor class NSHelpManager
```

## Overview

The [`NSHelpManager`](/documentation/AppKit/NSHelpManager) class provides an approach to displaying online help. An app contains one [`NSHelpManager`](/documentation/AppKit/NSHelpManager) object.

## Topics

### Getting the Help Manager

[`shared`](/documentation/AppKit/NSHelpManager/shared)

Returns the shared [`NSHelpManager`](/documentation/AppKit/NSHelpManager) instance, creating it if it does not already exist.

### Displaying Help

[`find(_:inBook:)`](/documentation/AppKit/NSHelpManager/find(_:inBook:))

Performs a search for the specified string in the specified book.

[`openHelpAnchor(_:inBook:)`](/documentation/AppKit/NSHelpManager/openHelpAnchor(_:inBook:))

Finds and displays the text at the given anchor location in the given book.

[`NSHelpManager.AnchorName`](/documentation/AppKit/NSHelpManager/AnchorName)

[`NSHelpManager.BookName`](/documentation/AppKit/NSHelpManager/BookName)

### Dynamically Adding Help Books

[`registerBooks(in:)`](/documentation/AppKit/NSHelpManager/registerBooks(in:))

Registers one or more help books in the given bundle.

### Configuring Context-Sensitive Help

[`setContextHelp(_:for:)`](/documentation/AppKit/NSHelpManager/setContextHelp(_:for:))

Associates help content with an object.

[`removeContextHelp(for:)`](/documentation/AppKit/NSHelpManager/removeContextHelp(for:))

Removes the association between an object and its context-sensitive help.

### Displaying Context-Sensitive Help

[`contextHelp(for:)`](/documentation/AppKit/NSHelpManager/contextHelp(for:))

Returns context-sensitive help for an object.

[`showContextHelp(for:locationHint:)`](/documentation/AppKit/NSHelpManager/showContextHelp(for:locationHint:))

Displays the context-sensitive help for a given object at or near the point on the screen specified by a given point.

[`NSHelpManager.ContextHelpKey`](/documentation/AppKit/NSHelpManager/ContextHelpKey)

[`isContextHelpModeActive`](/documentation/AppKit/NSHelpManager/isContextHelpModeActive)

### Notifications

[`contextHelpModeDidActivateNotification`](/documentation/AppKit/NSHelpManager/contextHelpModeDidActivateNotification)

Posted when the application enters context-sensitive help mode. This typically happens when the user holds down the Help key.

[`contextHelpModeDidDeactivateNotification`](/documentation/AppKit/NSHelpManager/contextHelpModeDidDeactivateNotification)

Posted when the application exits context-sensitive help mode. This happens when the user clicks the mouse button while the cursor is anywhere on the screen after displaying a context-sensitive help topic.



---

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)