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

# contextHelp(for:)

Returns context-sensitive help for an object.

```
func contextHelp(for object: Any) -> NSAttributedString?
```

## Parameters

`object`

Object for which context-sensitive help is sought.

## Return Value

Context-sensitive help content.

## See Also

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

Associates help content with an object.



---

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)