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 |
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 |
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 |
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 |
(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 |
(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 |
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 |
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 |
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 |
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 |
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 |
(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 |
(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 |
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 |
(Read and Write property)
The items on this page are in the following plugins: MBS MacCocoa Plugin.