Class

NSHelpManager

The NSHelpManager class provides an approach to displaying online help. An application contains one NSHelpManager object.

Symbols

Getting the Help Manager

class func shared()

Returns the shared NSHelpManager instance, creating it if it does not already exist.

Displaying Help

func find(String, inBook: String?)

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

func openHelpAnchor(String, inBook: String?)

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

Dynamically Adding Help Books

func registerBooks(in: Bundle)

Registers one or more help books in the given bundle.

Configuring Context-Sensitive Help

class func isContextHelpModeActive()

Indicates whether context-sensitive help mode is active.

class func setContextHelpModeActive(Bool)

Specifies whether context-sensitive help mode is active.

func setContextHelp(NSAttributedString, for: Any)

Associates help content with an object.

func removeContextHelp(for: Any)

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

Displaying Context-Sensitive Help

func contextHelp(for: Any)

Returns context-sensitive help for an object.

func showContextHelp(for: Any, locationHint: NSPoint)

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

Notifications

static let NSContextHelpModeDidActivate: NSNotification.Name

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

static let NSContextHelpModeDidDeactivate: NSNotification.Name

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.

Relationships

Inherits From

Conforms To