Contents

updateHelpMenu(with:)

Updates the help menu.

Declaration

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