Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSTextFieldMBS.AllowsCharacterPickerTouchBarItem as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No Yes, macOS only No
Function: Whether to allow character picker in touch bar.
Notes:
Available in macOS 10.12.2.
(Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.allowsEditingTextAttributes as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Whether the receiver allows the user to change font attributes of the receiver's text.
Notes:
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)

Feedback, Comments & Corrections

NSTextFieldMBS.AutomaticTextCompletionEnabled as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 17.1 Yes No No Yes, macOS only No
Function: Whether automatic text completion is enabled.
Notes:
Available in macOS 10.12.2.
(Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.backgroundColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: The color of the background that the receiver's cell draws behind the text.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.Bezeled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: A Boolean value indicating whether the receiver draws a bezeled frame.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.bezelStyle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.4 Yes No No Yes, macOS only No
Function: The receiver's bezel style.
Notes:
You must have already sent the receiver Bezeled with true to make this property take affect.
(Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.Bordered as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: A Boolean value indicating whether the receiver draws a black border around its contents.
Notes:
True if the receiver draws a solid black border around its contents; otherwise false.
(Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.drawsBackground as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Controls whether the receiver's cell draws its background color behind its text.
Notes:
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)

Feedback, Comments & Corrections

NSTextFieldMBS.Editable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Whether the user can edit the receiver's text.
Notes:
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)

Feedback, Comments & Corrections

NSTextFieldMBS.importsGraphics as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Controls whether the receiver allows the user to drag image files into it.
Notes:
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)

Feedback, Comments & Corrections

NSTextFieldMBS.placeholderAttributedString as NSAttributedStringMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 14.4 Yes No No Yes, macOS only No
Function: The attributed placeholder string.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.placeholderString as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 14.4 Yes No No Yes, macOS only No
Function: The plain text placeholder string.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextFieldMBS.Selectable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Whether the receiver is selectable (but not editable).
Notes:
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)

Feedback, Comments & Corrections

NSTextFieldMBS.textColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: The color used to draw the receiver's text.
Notes: (Read and Write property)

Feedback, Comments & Corrections

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




Links
MBS Xojo tutorial videos