<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSearchFieldCell/searchMenuTemplate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSearchFieldCell(py)searchMenuTemplate"
  },
  "title" : "searchMenuTemplate"
}
-->

# searchMenuTemplate

The menu object used to dynamically construct the search field’s pop-up icon menu.

```
var searchMenuTemplate: NSMenu? { get set }
```

## Discussion

The cell looks for the tag constants described in [Menu tags](/documentation/AppKit/menu-tags) to determine how to populate the menu with items related to recent searches. For an example of how you might set up the search menu template, see [Configuring a Search Menu](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/SearchFields/Articles/MenuTemplate.html#//apple_ref/doc/uid/20002245).

---

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)