---
title: recentSearches
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssearchfieldcell/recentsearches
---

# recentSearches

An array of the recent search strings to display in the pop-up icon menu of the search field.

## Declaration

```swift
var recentSearches: [String]! { get set }
```

## Discussion

Discussion This property contains an array of NSString objects, each of which contains a search string either displayed in the search menu or from a recent autosave archive. If there have been no recent searches and no prior searches saved under an autosave name, this array may be empty. When loading your interface, you might set the value of this property to a set of saved search strings.

## See Also

### Managing recent search strings

- [maximumRecents](appkit/nssearchfieldcell/maximumrecents.md)
- [recentsAutosaveName](appkit/nssearchfieldcell/recentsautosavename.md)
