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

# setContextHelp(_:for:)

Associates help content with an object.

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

## Parameters

`attrString`

Help content to associate with `object`.

`object`

Object to associate with `help`.

## Discussion

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

---

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)