---
title: recentsAutosaveName
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssearchfieldcell/recentsautosavename
---

# recentsAutosaveName

The autosave name under which the search field automatically saves the list of recent search strings.

## Declaration

```swift
var recentsAutosaveName: NSSearchField.RecentsAutosaveName? { get set }
```

## Discussion

Discussion The autosave name is used as a key in the standard user defaults to save the recent searches. If you specify nil or an empty string for this parameter, no autosave name is set and searches are not automatically saved.

## See Also

### Managing recent search strings

- [maximumRecents](appkit/nssearchfieldcell/maximumrecents.md)
- [recentSearches](appkit/nssearchfieldcell/recentsearches.md)
