Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSSearchFieldCellMBS class.
NSSearchFieldCellMBS.cancelButtonCell as NSButtonCellMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSSearchFieldCellMBS.maximumRecents as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The value of this property must be between 0 and 254. Specifying a negative value for the property sets it to the default value, which is 10. Specifying a value greater than 254 sets the property to 254.
When the maximum number of search strings is exceeded, the oldest search string on the menu is dropped.
(Read and Write property)
NSSearchFieldCellMBS.recentsAutosaveName as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The autosave name is used as a key in the standard user defaults to save the recent searches. If you specify nil or an empty string for this parameter, no autosave name is set and searches are not automatically saved.
(Read and Write property)
NSSearchFieldCellMBS.searchButtonCell as NSButtonCellMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write property)
NSSearchFieldCellMBS.searchMenuTemplate as NSMenuMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The cell looks for the tag constants described in Menu tags to determine how to populate the menu with items related to recent searches. For an example of how you might set up the search menu template, see Configuring a Search Menu:
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/SearchFields/Articles/MenuTemplate.html#//apple_ref/doc/uid/20002245
(Read and Write property)
NSSearchFieldCellMBS.sendsSearchStringImmediately as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
When the value of this property is true, the cell calls its action method immediately upon notification of any changes to the search field. When the value is NO, the cell pauses briefly after receiving a notification and then calls its action method. Pausing gives the user an opportunity to type more text into the search field and minimize the number of searches that are performed.
(Read and Write property)
NSSearchFieldCellMBS.sendsWholeSearchString as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
When the value of this property is true, the cell calls its action method when the user clicks the search button or presses Return. When the value is false, the cell calls the action method after each keystroke. The default value of this property is false.
(Read and Write property)
The items on this page are in the following plugins: MBS MacCocoa Plugin.