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

# 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.

```
func showContextHelp(for object: Any, locationHint pt: NSPoint) -> Bool
```

## Parameters

`object`

Object for which context-sensitive help is sought.

`pt`

Screen location at which to display the help content; it’s usually under the cursor.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> when help content is successfully displayed. <doc://com.apple.documentation/documentation/Swift/false> if help content is not displayed (for example, when there is no context-sensitive help associated with `object`).

## Discussion

---

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)