Platforms to show: All Mac Windows Linux Cross-Platform

Back to TextArea class.

TextArea.NSTextViewMBS as NSTextViewMBS

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 NSTextViewMBS object for the given control.
Example
// load rtfd file into textarea
dim file as FolderItem = SpecialFolder.Desktop.Child("test.rtfd")
dim n as NSAttributedStringMBS = NSAttributedStringMBS.attributedStringWithPath(file)
dim t as NSTextViewMBS = TextArea1.NSTextViewMBS
t.textStorage.setAttributedString(n)

This way you can manipulate Cocoa controls directly.
Xojo uses a NSTextField for text areas without style and without multiline.

Some examples using this method:

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


The biggest plugin in space...