---
title: sendsWholeSearchString
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssearchfield/sendswholesearchstring
---

# sendsWholeSearchString

A Boolean value indicating whether the cell calls its search action method when the user clicks the search button or presses Return, or after each keystroke.

## Declaration

```swift
var sendsWholeSearchString: Bool { get set }
```

## Discussion

Discussion When the value of this property is yes, the field calls its action method when the user clicks the search button or presses Return. When the value is NO, the field calls the action method after each keystroke. The default value of this property is no.

## See Also

### Managing Search Modes

- [sendsSearchStringImmediately](appkit/nssearchfield/sendssearchstringimmediately.md)
