Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTextMBS class.
NSTextMBS.scrollRangeToVisible(start as Integer, length as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSTextMBS.selectedRange as NSRangeMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | Cocoa Text | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
(Read and Write computed property)
Some examples using this property:
NSTextMBS.setFontForRange(font as NSFontMBS, start as Integer, length as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
This method applies only to a rich text object.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRanges to include this method in an undoable action.
NSTextMBS.setMaxSize(width as Double, height as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSTextMBS.setMinSize(width as Double, height as Double)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSTextMBS.setTextColorForRange(colorValue as NSColorMBS, start as Integer, length as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Removes the text color attribute if colorValue is nil. This method applies only to rich text objects.
This method does not include undo support by default. Clients must invoke shouldChangeTextInRange to include this method in an undoable action.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The text view will not be sized any smaller than its minimum size, however.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The items on this page are in the following plugins: MBS MacCocoa Plugin.