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 |
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 |
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 |
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 |
(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 |
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 |
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 |
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 |
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 |
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 |
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 |
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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 |
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 |
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 |
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 |
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 |
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 |
(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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
(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 |
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 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 |
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 |
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 |
(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 |
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 |
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 |
(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 |
(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 |
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 |
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.