<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/search-field",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Search Field"
}
-->

# Search Field

Provide a text field that is optimized for text-based search interfaces.

## Topics

### View

[`NSSearchField`](/documentation/AppKit/NSSearchField)

A text field optimized for performing text-based searches.

### Cell

[`NSSearchFieldCell`](/documentation/AppKit/NSSearchFieldCell)

The programmatic interface for text fields that are used for text-based searches.

### Search and Replace

[`NSTextFinder`](/documentation/AppKit/NSTextFinder)

An optional search-and-replace find interface inside a view, usually a scroll view.

[`NSTextFinderBarContainer`](/documentation/AppKit/NSTextFinderBarContainer)

A protocol that provides a container in which the find bar is displayed.

[`NSTextFinderClient`](/documentation/AppKit/NSTextFinderClient)

A set of methods implemented by objects that support searching using the [`NSTextFinder`](/documentation/AppKit/NSTextFinder) class and the in-window text find bar.



---

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)