Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTextFieldMBS class.

NSTextFieldMBS.AllowsCharacterPickerTouchBarItem as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether to allow character picker in touch bar.

Available in macOS 10.12.2.
(Read and Write property)

NSTextFieldMBS.allowsEditingTextAttributes as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver allows the user to change font attributes of the receiver's text.

If true, the user is permitted to change font attributes of the receiver's text; if flag is false, the user isn't so permitted. You can change text attributes programmatically regardless of this setting.
(Read and Write property)

NSTextFieldMBS.AutomaticTextCompletionEnabled as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether automatic text completion is enabled.

Available in macOS 10.12.2.
(Read and Write property)

NSTextFieldMBS.backgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The color of the background that the receiver's cell draws behind the text.

(Read and Write property)

NSTextFieldMBS.Bezeled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value indicating whether the receiver draws a bezeled frame.

(Read and Write property)

NSTextFieldMBS.bezelStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's bezel style.

You must have already sent the receiver Bezeled with true to make this property take affect.
(Read and Write property)

NSTextFieldMBS.Bordered as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value indicating whether the receiver draws a black border around its contents.

True if the receiver draws a solid black border around its contents; otherwise false.
(Read and Write property)

NSTextFieldMBS.drawsBackground as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Controls whether the receiver's cell draws its background color behind its text.

In order to prevent inconsistent rendering, background color rendering is disabled for rounded-bezel text fields.

To really make the background go away, also set bordered=false.
(Read and Write property)

NSTextFieldMBS.Editable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the user can edit the receiver's text.

If true, then the user is allowed to both select and edit text. If flag is false, then the user isn't permitted to edit text, and the receiver's selectability is restored to its previous value.

For example, if an NSTextField object is selectable but not editable, then made editable for a time, then made not editable, it remains selectable. To guarantee that text is neither editable nor selectable, simply use setSelectable to turn off selectability.
(Read and Write property)

NSTextFieldMBS.importsGraphics as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Controls whether the receiver allows the user to drag image files into it.

If true, the receiver accepts dragged images; if false, it doesn't. You can add images programmatically regardless of this setting.
(Read and Write property)

NSTextFieldMBS.placeholderAttributedString as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The attributed placeholder string.

(Read and Write property)

NSTextFieldMBS.placeholderString as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The plain text placeholder string.

(Read and Write property)

NSTextFieldMBS.Selectable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver is selectable (but not editable).

If true, the receiver is made selectable but not editable (use Editable to make text both selectable and editable). If false, the text is neither editable nor selectable.
(Read and Write property)

NSTextFieldMBS.textColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The color used to draw the receiver's text.

(Read and Write property)

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


The biggest plugin in space...