Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
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 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.
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. |
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. |
This class has no sub classes.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSScrollViewMBS - NSSearchFieldMBS