Platforms to show: All Mac Windows Linux Cross-Platform

NSSearchFieldCellMBS class

Super class: NSTextFieldCellMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacCocoa Plugin 22.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The programmatic interface for text fields that are used for text-based searches.

The NSSearchFieldCell class defines the programmatic interface for text fields that are optimized for text-based searches. An NSSearchFieldCell object is “wrapped” by an NSSearchFieldMBS control object, which directly inherits from the NSTextFieldMBS class. The search field implemented by these classes presents a standard user interface for searches, including a search button, a cancel button, and a pop-up icon menu for listing recent search strings and custom search categories.

When the user types and then pauses, the cell’s action message is sent to its target. You can query the cell’s string value for the current text to search for. Do not rely on the sender of the action to be an NSMenuMBS object because the menu may change. If you need to change the menu, modify the search menu template and update the value in the searchMenuTemplate property.
Subclass of the NSTextFieldCellMBS class.

Menu Tags

Constant Value Description
ClearRecentsMenuItemTag 1002 The menu item for clearing the current set of recent string searches in the menu.
NoRecentsMenuItemTag 1003 The menu item that describes a lack of recent search strings.
RecentsMenuItemTag 1001 The location of recent search strings in the “recents” menu group.
RecentsTitleMenuItemTag 1000 The menu item that provides the title of the menu group for recent search strings.

Super class NSTextFieldCellMBS

Constants

Constant Value Description
NSTextFieldRoundedBezel 1 One of the constants to specify the bezel style of the text field cell. Corners are rounded.
Available in Mac OS X v10.2 and later.
NSTextFieldSquareBezel 0 One of the constants to specify the bezel style of the text field cell. Corners are square.
Available in Mac OS X v10.2 and later.

Super class NSActionCellMBS

Super class NSCellMBS

This class has no sub classes.

Blog Entries

Release notes


The items on this page are in the following plugins: MBS MacCocoa Plugin.


NSScrollViewMBS   -   NSSearchFieldMBS


The biggest plugin in space...