---
title: "updateHelpMenu(with:)"
framework: preferencepanes
role: symbol
role_heading: Instance Method
path: "preferencepanes/nspreferencepane/updatehelpmenu(with:)"
---

# updateHelpMenu(with:)

Updates the help menu.

## Declaration

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

## Discussion

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 for the help menu item title, and NSPreferencePane for the anchor reference for AHLookupAnchor.
