Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

NSTextViewMBS.acceptsGlyphInfo as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether the receiver accepts the glyph info attribute.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.allowsDocumentBackgroundColorChange as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Sets whether the receiver allows its background color to change.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.allowsImageEditing as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether image attachments should permit editing of their images.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.allowsUndo as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether undo support is enabled.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.AutomaticDashSubstitutionEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Whether automatic dash substitution is enabled.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.AutomaticDataDetectionEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Whether automatic data detection is enabled.
Notes:
Automatic data detection enables detection of dates, addresses, and phone numbers.
Available in Mac OS X v10.6 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.AutomaticLinkDetectionEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Enables or disables automatic link detection.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.AutomaticQuoteSubstitutionEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether automatic quotation mark substitution is enabled.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.AutomaticSpellingCorrectionEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Whether automatic spelling correction is enabled.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.AutomaticTextReplacementEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Whether automatic text replacement is enabled.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.backgroundColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: The background color.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.Bold as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 16.5 Yes No No Yes, macOS only No
Function: Whether the current typing uses a bold font.
Example:
//  some textview
dim textview as NSTextView = TextArea1.NSTextViewMBS

// switch to bold font
textview.Bold = true
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.ContinuousSpellCheckingEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether the receiver has continuous spell checking enabled.
Notes:
True if the receiver has continuous spell checking enabled, otherwise, false.
(Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.defaultParagraphStyle as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Gets or sets the receiver's default paragraph style.
Notes:
Use with NSParagraphStyleMBS class.
(Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.displaysLinkToolTips as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.enabledTextCheckingTypes as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: The default text checking types.
Notes:
Available in Mac OS X v10.6 and later.

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

Feedback, Comments & Corrections

NSTextViewMBS.GrammarCheckingEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Whether or not grammar checking is enabled.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.insertionPointColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: The color used to draw the insertion point.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.isCoalescingUndo as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Returns whether undo coalescing is in progress.
Notes:
True if undo coalescing is in progress, otherwise false.
Available in OS X v10.6 and later.
(Read only property)

Feedback, Comments & Corrections

NSTextViewMBS.Italic as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 16.5 Yes No No Yes, macOS only No
Function: Whether the current typing uses a italic font.
Example:
//  some textview
dim textview as NSTextView = TextArea1.NSTextViewMBS

// switch to italic font
textview.Italic = true
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.layoutManager as NSLayoutManagerMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Returns the layout manager that lays out text for the receiver's text container.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.linkTextAttributes as dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Gets and sets the attributes used to draw the onscreen presentation of link text.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.markedTextAttributes as dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Gets or sets the attributes used to draw marked text.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.RTFData as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 13.5 Yes No No Yes, macOS only No
Function: Get or set the textview content as RTF data.
Notes:
Works only for Cocoa and uses RTF parser/generator from Apple.
(Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.RulerVisible as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether the scroll view enclosing the text views sharing the receiver's layout manager shows its ruler.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.selectedTextAttributes as dictionary
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Gets or sets the attributes used to indicate the selection.
Example:
// underline selected text in TextArea1

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

dim d as Dictionary = t.selectedTextAttributes
d.Value(NSAttributedStringMBS.NSStrikethroughStyleAttributeName) = s.NSUnderlineStyleSingle
t.selectedTextAttributes = d
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.smartInsertDeleteEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 8.6 Yes No No Yes, macOS only No
Function: Whether the view inserts or deletes space around selected words so as to preserve proper spacing and punctuation.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSTextViewMBS.spellCheckerDocumentTag as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns a tag identifying the text view's text as a document for the spell checker server.
Notes:
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)

Feedback, Comments & Corrections

NSTextViewMBS.textContainer as NSTextContainerMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: The text container.
Notes:
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)

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo PDF Plugins