NSSearchField object implements a text field control that is optimized for performing text-based searches. The control provides a customized text field for entering search data, a search button, a cancel button, and a pop-up icon menu for listing recent search strings and custom search categories.
- macOS 10.10+
NSSearchField object wraps an
NSSearchFieldCell object. Access to most search field attributes occurs through the cell, which provides a more comprehensive programmatic interface for manipulating the search field. You can use an
NSSearchField object though to manipulate some aspects of the search field. For additional information about search fields and how to manipulate them, see the