Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTextFieldMBS class.

NSTextFieldMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new text field with size 100/100 and position 0/0
Example
dim t as new NSTextFieldMBS

On success the handle property is not zero.

See also:

NSTextFieldMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 10.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an object based on the given NSTextField handle.
Example
dim t as new NSTextFieldMBS(0, 0, 100, 100)
dim v as new NSTextFieldMBS(t.handle)

MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)

The handle is casted to a NSTextField and the plugin retains this handle.

See also:

NSTextFieldMBS.Constructor(left as Double, top as Double, width as Double, height as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new text field with the given size and position.
Example
dim x as new NSTextFieldMBS(0, 0, 100, 100)

On success the handle property is not zero.

See also:

NSTextFieldMBS.selectText

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Ends editing and selects the entire contents of the receiver if it's selectable.

If the receiver isn't in some window's view hierarchy, this method has no effect.

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


The biggest plugin in space...