Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTextViewMBS class.

NSTextViewMBS.acceptsGlyphInfo as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver accepts the glyph info attribute.

True if the receiver should accept the NSGlyphInfoAttributeName attribute from text input sources such as input methods and the pasteboard, false otherwise.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.allowsDocumentBackgroundColorChange as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets whether the receiver allows its background color to change.

This corresponds to the background color of the entirety of the text view, not just to a selected range of text.
(Read and Write property)

NSTextViewMBS.allowsImageEditing as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether image attachments should permit editing of their images.

True if image editing is allowed; otherwise, false.

For image editing to be allowed, the text view must be editable and the text attachment cell must support image editing.

Available in Mac OS X v10.5 and later.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.allowsUndo as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether undo support is enabled.

(Read and Write property)

NSTextViewMBS.AutomaticDashSubstitutionEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether automatic dash substitution is enabled.
Example
Sub CellGotFocus(row as Integer, column as Integer) Handles CellGotFocus
// disable dash subsitution for current cell
Var v As Variant = Me.ActiveCell
if v isa TextArea then
Var t As TextArea = v
Var n As NSTextViewMBS = t.NSTextViewMBS
n.AutomaticDashSubstitutionEnabled = False
End If
End

Turning on automatic dash substitution enables automatic conversion of sequences of ASCII hyphen (-) characters to typographic dashes.
Available in Mac OS X v10.6 and later.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.AutomaticDataDetectionEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether automatic data detection is enabled.

Automatic data detection enables detection of dates, addresses, and phone numbers.
Available in Mac OS X v10.6 and later.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.AutomaticLinkDetectionEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Enables or disables automatic link detection.

If true, automatic link detection is enabled; if false, it is disabled.

Automatic link detection causes strings representing URLs typed in the view to be automatically made into links to those URLs.

Available in Mac OS X v10.5 and later.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.AutomaticQuoteSubstitutionEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether automatic quotation mark substitution is enabled.

True if automatic quotation mark substitution is enabled; otherwise, false.

Automatic quote substitution causes ASCII quotation marks and apostrophes to be automatically replaced, on a context-dependent basis, with more typographically accurate symbols.

Available in Mac OS X v10.5 and later.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.AutomaticSpellingCorrectionEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether automatic spelling correction is enabled.

Available in Mac OS X v10.6 and later.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.AutomaticTextReplacementEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether automatic text replacement is enabled.

Turning on automatic text replacement enables automatic substitution of a variety of static text items based on user preferences.
Available in Mac OS X v10.6 and later.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.backgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The background color.

(Read and Write property)

NSTextViewMBS.Bold as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the current typing uses a bold font.
Example
//  some textview
Var textview as NSTextView = TextArea1.NSTextViewMBS

// switch to bold font
textview.Bold = true

You can set this to continue typing with/without bold or change current selection.
Can only provide bold if the font supports it.
(Read and Write property)

NSTextViewMBS.ContinuousSpellCheckingEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver has continuous spell checking enabled.

True if the receiver has continuous spell checking enabled, otherwise, false.

See Textarea.WinSpellcheckingMBS property for Windows.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.defaultParagraphStyle as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Gets or sets the receiver's default paragraph style.
Example
Var n As NSTextViewMBS = TextArea1.NSTextViewMBS
Var a As NSTextStorageMBS = n.textStorage

// get first paragraph style
Var m As New NSMutableParagraphStyleMBS

// get old tab stops
Var tabs() As NSTextTabMBS

For i As Integer = 0 To 11
Var options As New Dictionary
Var neu As New NSTextTabMBS(n.NSLeftTextAlignment, i * 50.0, options)
tabs.append neu
next

m.setTabStops tabs

// change for current text
a.addAttribute(a.NSParagraphStyleAttributeName, m, New NSRangeMBS(0, a.Length))

// and for future text
n.defaultParagraphStyle = m

Use with NSParagraphStyleMBS class.
(Read and Write property)

NSTextViewMBS.displaysLinkToolTips as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute.

True if link tooltips are automatically displayed; otherwise, false.

The default value for this feature is true; clients who do not wish tooltips to be displayed automatically must explicitly disable it.

Available in Mac OS X v10.5 and later.
(Read and Write property)

NSTextViewMBS.enabledTextCheckingTypes as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The default text checking types.

Available in Mac OS X v10.6 and later.

Can be NSTextCheckingAllSystemTypes (&hffffffff) or NSTextCheckingAllCustomTypes (&hffffffff00000000) or NSTextCheckingAllTypes (&hffffffffffffffff).
(Read and Write property)

NSTextViewMBS.GrammarCheckingEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether or not grammar checking is enabled.

Available on Mac OS X 10.5 or newer.
If grammar checking is enabled, then it is performed alongside spell checking, whenever the text view checks spelling, whether continuously or manually.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.insertionPointColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The color used to draw the insertion point.

(Read and Write property)

NSTextViewMBS.isCoalescingUndo as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns whether undo coalescing is in progress.

True if undo coalescing is in progress, otherwise false.
Available in OS X v10.6 and later.
(Read only property)

NSTextViewMBS.Italic as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the current typing uses a italic font.
Example
//  some textview
Var textview as NSTextView = TextArea1.NSTextViewMBS

// switch to italic font
textview.Italic = true

You can set this to continue typing with/without italic or change current selection.
Can only provide italic if the font supports it.
(Read and Write property)

NSTextViewMBS.layoutManager as NSLayoutManagerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the layout manager that lays out text for the receiver's text container.

The layout manager that lays out text for the receiver's text container, or nil if there's no such object, such as when a text view isn't linked into a group of text objects.
(Read only property)

NSTextViewMBS.linkTextAttributes as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Gets and sets the attributes used to draw the onscreen presentation of link text.

A dictionary of attributes corresponding to the onscreen presentation of link text.

Link text attributes are applied as temporary attributes to any text with a link attribute. Candidates include those attributes that do not affect layout.

In applications created prior to OS X v10.3, the default value is an empty dictionary. In applications created with OS X v10.3 or greater, the default attributes specify blue text with a single underline and the pointing hand cursor.
(Read and Write property)

NSTextViewMBS.markedTextAttributes as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Gets or sets the attributes used to draw marked text.

A dictionary of attributes used to draw marked text. Text color, background color, and underline are the only supported attributes for marked text.
(Read and Write property)

NSTextViewMBS.RTFData as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Get or set the textview content as RTF data.

Works only for Cocoa and uses RTF parser/generator from Apple.

See also RTFDataMBS in StyledText, RTFDataMBS and WinRTFDataMBS in TextArea and DesktopTextArea controls.
(Read and Write property)

NSTextViewMBS.RulerVisible as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the scroll view enclosing the text views sharing the receiver's layout manager shows its ruler.

True if the scroll view enclosing the text views sharing the receiver's layout manager shows its ruler, false otherwise. The default is false.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.selectedTextAttributes as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Gets or sets the attributes used to indicate the selection.
Example
// underline selected text in TextArea1

Var t as NSTextViewMBS = TextArea1.NSTextViewMBS
Var s as NSTextStorageMBS = t.textStorage

Var d as Dictionary = t.selectedTextAttributes
d.Value(NSAttributedStringMBS.NSStrikethroughStyleAttributeName) = s.NSUnderlineStyleSingle
t.selectedTextAttributes = d

A dictionary of attributes used to indicate the selection. Text color, background color, and underline are the only supported attributes for selected text.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.smartInsertDeleteEnabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the view inserts or deletes space around selected words so as to preserve proper spacing and punctuation.

(Read and Write property)

Some examples using this property:

NSTextViewMBS.spellCheckerDocumentTag as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a tag identifying the text view's text as a document for the spell checker server.

The document tag is obtained by sending a uniqueSpellDocumentTag message to the spell server the first time this method is invoked for a particular group of text views. See the NSSpellChecker and NSSpellServer class specifications for more information on how this tag is used.
(Read only property)

NSTextViewMBS.textContainer as NSTextContainerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The text container.

The receiver uses the layout manager and text storage of aTextContainer.

Special Considerations
This method is invoked automatically when you create a text view; you should never invoke it directly, but might want to override it. To change the text view for an established group of text system objects, use TextView setter on the text container. To replace the text container for a text view and maintain the view's association with the existing layout manager and text storage, use replaceTextContainer.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.textContainerInset as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The empty space the receiver leaves around its text container.
Example
Var n as NSTextViewMBS = TextArea1.NSTextViewMBS

n.textContainerInset = NSMakeSizeMBS(-3,0)

It is possible to set the text container and view sizes and resizing behavior so that the inset cannot be maintained exactly, although the text system tries to maintain the inset wherever possible. In any case, the textContainerOrigin and size of the text container are authoritative as to the location of the text container within the view.

The text itself can have an additional inset, inside the text container, specified by the setLineFragmentPadding method of NSTextContainer.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.textContainerOrigin as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the origin of the receiver's text container.

The origin of the receiver's text container, which is calculated from the receiver's bounds rectangle, container inset, and the container's used rect.
(Read only property)

NSTextViewMBS.textStorage as NSTextStorageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the receiver's text storage object.
Example
// load rtfd file into textarea
Var file as FolderItem = SpecialFolder.Desktop.Child("test.rtfd")
Var n as NSAttributedStringMBS = NSAttributedStringMBS.attributedStringWithPath(file)
Var t as NSTextViewMBS = TextArea1.NSTextViewMBS
t.textStorage.setAttributedString(n)

(Read only property)

NSTextViewMBS.typingAttributes as dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Get or set typing attributes.

Typing attributes are reset automatically whenever the selection changes. However, if you add any user actions that change text attributes, the action should use this method to apply those attributes afterwards. User actions that change attributes should always set the typing attributes because there might not be a subsequent change in selection before the next typing.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.usesFindBar as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether to use the find bar for this text view.

The value of this property is true if the find bar is used for this text view; otherwise false.
See NSTextFinderMBS class for information about the find bar.
A text view can use either a find panel or a find bar. If usesFindBar is set to true, usesFindPanel is set to false and vice versa.
(Read and Write property)

Some examples using this property:

NSTextViewMBS.usesFindPanel as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the receiver allows for a find panel.

(Read and Write property)

Some examples using this property:

NSTextViewMBS.usesFontPanel as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Controls whether the text views sharing the receiver's layout manager use the Font panel and Font menu.

(Read and Write property)

NSTextViewMBS.usesInspectorBar as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether this text view uses the inspector bar.
Example
Var t as NSTextViewMBS = textarea1.NSTextViewMBS
t.usesInspectorBar = true

Available in OS X v10.7 and later.
(Read and Write property)

NSTextViewMBS.usesRuler as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the text views sharing the receiver's layout manager use a ruler.

True to cause text views sharing the receiver's layout manager to respond to NSRulerView client messages and to paragraph-related menu actions, and update the ruler (when visible) as the selection changes with its paragraph and tab attributes, otherwise false.

Text views must use a ruler to respond to Format menu commands. If a set of text views don't use the ruler, the ruler is hidden, and the text views disallow paragraph attribute changes. By default, text view objects use the ruler.
(Read and Write property)

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


The biggest plugin in space...