<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSUserInterfaceItemSearching",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSUserInterfaceItemSearching"
  },
  "title" : "NSUserInterfaceItemSearching"
}
-->

# NSUserInterfaceItemSearching

A set of methods an app can implement to provide Spotlight for Help for its own custom help data.

```
protocol NSUserInterfaceItemSearching : NSObjectProtocol
```

## Overview

In general, users find the Help search functionality very useful. However, many large apps don’t use Apple Help API because of cross platform requirements, which means that some important Help topics are not presented as part of the Help menu. This API allows developers to incorporate their own Help topics and take full advantage of the Help feature.

In your app, you implement the [`NSUserInterfaceItemSearching`](/documentation/AppKit/NSUserInterfaceItemSearching) protocol and then register your object with [`registerUserInterfaceItemSearchHandler(_:)`](/documentation/AppKit/NSApplication/registerUserInterfaceItemSearchHandler(_:)).

## Topics

### Show Help Menu

[`localizedTitles(forItem:)`](/documentation/AppKit/NSUserInterfaceItemSearching/localizedTitles(forItem:))

Returns an array of localized strings that will form the help menu item.

[`showAllHelpTopics(forSearch:)`](/documentation/AppKit/NSUserInterfaceItemSearching/showAllHelpTopics(forSearch:))

If this method is implemented, a “Show All Help Topics” item will appear in the menu and this method is called when the user selects it.

### Search Help Content

[`searchForItems(withSearch:resultLimit:matchedItemHandler:)`](/documentation/AppKit/NSUserInterfaceItemSearching/searchForItems(withSearch:resultLimit:matchedItemHandler:))

Search for the specified items, with the result limit.

[`performAction(forItem:)`](/documentation/AppKit/NSUserInterfaceItemSearching/performAction(forItem:))

Invoked when the user selects a search result in Help menu.



---

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)