Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSSearchFieldMBS class.

NSSearchFieldMBS.cancelButtonBounds as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 26.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Queries the location of the cancel button.

This may invoke the cancelButtonRectForBounds event for NSSearchFieldControlMBS control.
(Read only property)

NSSearchFieldMBS.maximumRecents as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The maximum number of search strings that can appear in the search menu.

The maximum number of search strings that can appear in the menu. This value can be between 0 and 254. Specifying a value less than 0 sets the value to the default, which is 10. Specifying a value greater than 254 sets the maximum to 254.

When the limit is exceeded, the oldest search string on the menu is dropped.
(Read and Write property)

NSSearchFieldMBS.recentsAutosaveName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The key under which the prior list of recent search strings has been archived.

The autosave name, which is used as a key in the standard user defaults to save the recent searches. The default value is "", which causes searches not to be autosaved.
(Read and Write property)

NSSearchFieldMBS.Scrollable as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 24.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver scrolls excess text past the cell's bounds.

(Read and Write property)

NSSearchFieldMBS.searchButtonBounds as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 26.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Queries the location of the search button.

This may invoke the searchButtonRectForBounds event for NSSearchFieldControlMBS control.
(Read only property)

NSSearchFieldMBS.searchMenuTemplate as NSMenuMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The menu template object used to dynamically construct the search pop-up icon menu.

The receiver looks for the tag constants described in Menu tags to determine how to populate the menu with items related to recent searches. (See constants)

To modify the actual menu shown, please use NSMenuItemMBS.validateMenuItem event. There you can for example set the state of the menu item shown. The SearchField makes a copy of the NSMenuItem, so the menuitem where the event is called, is not the one shown. It's the one passes as parameter.
(Read and Write property)

NSSearchFieldMBS.searchTextBounds as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 26.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Queries the location of the search text.

This may invoke the searchTextRectForBounds event for NSSearchFieldControlMBS control.
(Read only property)

NSSearchFieldMBS.sendsSearchStringImmediately as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the cell sends its action message to the target immediately upon notification of any changes to the search field text or after a brief pause.

True to send the cell's action immediately upon notification of any changes to the search field; otherwise, false if you want the cell to pause briefly before sending its action message. Pausing gives the user the opportunity to type more text into the search field before initiating the search.
(Read and Write property)

NSSearchFieldMBS.sendsWholeSearchString as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver sends the search action message when the user clicks the search button (or presses return) or after each keystroke.

True to send the action message all at once when the user clicks the search button or presses return; otherwise, False to send the search string after each keystroke.
(Read and Write property)

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


The biggest plugin in space...