<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PreferencePanes",
  "identifier" : "/documentation/PreferencePanes/NSPreferencePane/updateHelpMenu(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Preference Panes"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPreferencePane(im)updateHelpMenuWithArray:"
  },
  "title" : "updateHelpMenu(with:)"
}
-->

# updateHelpMenu(with:)

Updates the help menu.

```
func updateHelpMenu(with inArrayOfMenuItems: [[String : String]]?)
```

## Discussion

Call this method if you need to update help menu items dynamically. If you have static help menu items, you should not use this method. Specify them under the `NSPrefPanelHelpAnchors` key in the bundle’s `Info.plist` instead.

The array contains dictionaries with two keys. Use [`NSPreferencePane`](/documentation/PreferencePanes/NSPreferencePane) for the help menu item title, and [`NSPreferencePane`](/documentation/PreferencePanes/NSPreferencePane) for the anchor reference for `AHLookupAnchor`.

---

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)