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

# NSSearchFieldDelegate

A protocol that a search field delegate can use to determine when a search started or ended.

```
protocol NSSearchFieldDelegate : NSTextFieldDelegate
```

## Topics

### Detecting the Start and End of a Search

[`searchFieldDidStartSearching(_:)`](/documentation/AppKit/NSSearchFieldDelegate/searchFieldDidStartSearching(_:))

The method that is called when the search field begins searching for content.

[`searchFieldDidEndSearching(_:)`](/documentation/AppKit/NSSearchFieldDelegate/searchFieldDidEndSearching(_:))

The method that is called when the search field has ended its search for content.



---

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)