---
title: "setContextHelp(_:for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nshelpmanager/setcontexthelp(_:for:)"
---

# setContextHelp(_:for:)

Associates help content with an object.

## Declaration

```swift
func setContextHelp(_ attrString: NSAttributedString, for object: Any)
```

## Parameters

- `attrString`: Help content to associate with object.
- `object`: Object to associate with help.

## Discussion

Discussion When the application enters context-sensitive help mode, if object is clicked, help appears in the context-sensitive help window.

## See Also

### Configuring Context-Sensitive Help

- [removeContextHelp(for:)](appkit/nshelpmanager/removecontexthelp(for:).md)
