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.alignJustified
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Applies full justification to selected paragraphs (or all text, if the receiver is a plain text object).

Feedback, Comments & Corrections

NSTextViewMBS.breakUndoCoalescing
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Informs the receiver that it should begin coalescing successive typing operations in a new undo grouping.
Notes: This method should be invoked when saving the receiver's contents to preserve proper tracking of unsaved changes and the document's dirty state.

Feedback, Comments & Corrections

NSTextViewMBS.changeAttributes
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Changes the attributes of the current selection.
Notes:
This method changes the attributes by invoking convertAttributes: on sender and applying the returned attributes to the appropriate text. See the NSFontManager class reference for more information on attribute conversion.

Available in Mac OS X v10.3 and later.

Feedback, Comments & Corrections

NSTextViewMBS.changeColor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Sets the color of the selected text.

Feedback, Comments & Corrections

NSTextViewMBS.changeDocumentBackgroundColor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: An action method used to set the background color.
Notes:
This method gets the new color by sending a color message to sender.
This will only set the background color if allowsDocumentBackgroundColorChangereturns true.

Feedback, Comments & Corrections

NSTextViewMBS.checkTextInDocument
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Check text in document.
Notes: Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSTextViewMBS.checkTextInSelection
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Check text in selection.
Notes: Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSTextViewMBS.complete
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Invokes completion in a text view.
Notes: By default invoked using the Escape key, this method provides users with a choice of completions for the word currently being typed. May be invoked programmatically if autocompletion is desired by a client of the text system. You can change the key invoking this method using the text system's key bindings mechanism; see "Text System Defaults and Key Bindings" for an explanation of the procedure (on Apple website).

Feedback, Comments & Corrections

NSTextViewMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 8.2 Yes No No Yes, macOS only No
Function: Creates a new text view with size 100/100 and position 0/0
Example:
dim t as new NSTextViewMBS
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

NSTextViewMBS.Constructor(Handle as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.3 Yes No No Yes, macOS only No
Function: Creates an object based on the given NSTextView handle.
Example:
dim t as new NSTextViewMBS(0, 0, 100, 100)
dim v as new NSTextViewMBS(t.handle)

MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)
Notes: The handle is casted to a NSTextView and the plugin retains this handle.

See also:

Feedback, Comments & Corrections

NSTextViewMBS.Constructor(left as Double, top as Double, width as Double, height as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 7.8 Yes No No Yes, macOS only No
Function: Creates a new text view with the given size and position.
Example:
dim x as new NSTextViewMBS(0, 0, 100, 100)
Notes: On success the handle property is not zero.

See also:

Feedback, Comments & Corrections

NSTextViewMBS.insertText(attributedString as NSAttributedStringMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.2 Yes No No Yes, macOS only No
Function: Inserts text into the receiver's text at the insertion point if there is one, otherwise replacing the selection.
Example:
dim textView as NSTextViewMBS // your view
dim a as new NSMutableAttributedStringMBS

if a.initWithString( "Hello World. This is just a little test." ) then

Dim NSFont as NSFontMBS = NSFontMBS.fontWithName("Arial", 24.0)
Dim NSColor as NSColorMBS = NSColorMBS.blueColor
Dim NSRange as NSRangeMBS = NSMakeRangeMBS( 0, 20)
Dim NSAttributes as New Dictionary

NSAttributes.value(NSAttributedStringMBS.NSFontAttributeName) = NSFont
NSAttributes.value(NSAttributedStringMBS.NSForegroundColorAttributeName) = NSColor

a.addAttributes( NSAttributes, NSRange)

textView.insertText a

// replace text with new one:
'textView.textStorage.setAttributedString a

end if
Notes:
text: The string to insert. Can be either an string or an NSAttributedStringMBS object.

The inserted text is assigned the current typing attributes.

This method is the means by which text typed by the user enters an NSTextView. See the NSInputManager class and NSTextInput protocol specifications for more information.

This method is the entry point for inserting text typed by the user and is generally not suitable for other purposes. Programmatic modification of the text is best done by operating on the text storage directly. Because this method pertains to the actions of the user, the text view must be editable for the insertion to work.

See also:

Feedback, Comments & Corrections

NSTextViewMBS.insertText(text as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.2 Yes No No Yes, macOS only No
Function: Inserts text into the receiver's text at the insertion point if there is one, otherwise replacing the selection.
Notes:
text: The string to insert. Can be either an string or an NSAttributedStringMBS object.

The inserted text is assigned the current typing attributes.

This method is the means by which text typed by the user enters an NSTextView. See the NSInputManager class and NSTextInput protocol specifications for more information.

This method is the entry point for inserting text typed by the user and is generally not suitable for other purposes. Programmatic modification of the text is best done by operating on the text storage directly. Because this method pertains to the actions of the user, the text view must be editable for the insertion to work.

See also:

Feedback, Comments & Corrections

NSTextViewMBS.invalidateTextContainerOrigin
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Invalidates the calculated origin of the text container.
Notes: This method is invoked automatically; you should never need to invoke it directly. Usually called because the text view has been resized or the contents of the text container have changed.

Feedback, Comments & Corrections

NSTextViewMBS.loosenKerning
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 8.6 Yes No No Yes, macOS only No
Function: Increases the space between glyphs in the receiver's selection, or in all text if the receiver is a plain text view.
Notes: Kerning values are determined by the point size of the fonts in the selection.

Feedback, Comments & Corrections

NSTextViewMBS.lowerBaseline
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 8.6 Yes No No Yes, macOS only No
Function: Lowers the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view.
Notes: As such, this method defines a more primitive operation than subscripting.

Feedback, Comments & Corrections

NSTextViewMBS.orderFrontLinkPanel
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Brings forward a panel allowing the user to manipulate links in the text view.
Notes: Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSTextViewMBS.orderFrontListPanel
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Brings forward a panel allowing the user to manipulate text lists in the text view.
Notes: Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSTextViewMBS.orderFrontSpacingPanel
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Brings forward a panel allowing the user to manipulate text line heights, interline spacing, and paragraph spacing, in the text view.
Notes: Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSTextViewMBS.orderFrontSubstitutionsPanel
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Orders the substitution panel to the front.
Notes: Available on Mac OS X 10.6 or newer.

Feedback, Comments & Corrections

NSTextViewMBS.orderFrontTablePanel
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: Brings forward a panel allowing the user to manipulate text tables in the text view.

Feedback, Comments & Corrections

NSTextViewMBS.outline
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 8.6 Yes No No Yes, macOS only No
Function: Adds the outline attribute to the selected text attributes if absent; removes the attribute if present.
Notes:
If there is a selection and the first character of the selected range has a non-zero stroke width, or if there is no selection and the typing attributes have a non-zero stroke width, then the stroke width is removed; otherwise the value of NSStrokeWidthAttributeName is set to the default value for outline (3.0).

Operates on the selected range if the receiver contains rich text. For plain text the range is the entire contents of the receiver.

Feedback, Comments & Corrections

NSTextViewMBS.pasteAsPlainText
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Inserts the contents of the pasteboard into the receiver's text as plain text.
Notes: This method behaves analogously to insertText.

Feedback, Comments & Corrections

NSTextViewMBS.pasteAsRichText
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: This action method inserts the contents of the pasteboard into the receiver's text as rich text, maintaining its attributes.
Notes: The text is inserted at the insertion point if there is one, otherwise replacing the selection.

Feedback, Comments & Corrections

NSTextViewMBS.performFindPanelAction(FindAction as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Performs a find panel action specified by the sender's tag.
Example:
const NSFindPanelActionShowFindPanel = 1

dim n as NSTextViewMBS = TextArea1.NSTextViewMBS
n.usesFindPanel = true
n.performFindPanelAction(NSFindPanelActionShowFindPanel)
Notes:
This is the generic action method for the find menu and find panel, and can be overridden to implement a custom find panel.

Possible values:
NSFindPanelActionShowFindPanel = 1
NSFindPanelActionNext = 2
NSFindPanelActionPrevious = 3
NSFindPanelActionReplaceAll = 4
NSFindPanelActionReplace = 5
NSFindPanelActionReplaceAndFind = 6
NSFindPanelActionSetFindString = 7
NSFindPanelActionReplaceAllInSelection = 8
NSFindPanelActionSelectAll = 9
NSFindPanelActionSelectAllInSelection = 10

See also:

Feedback, Comments & Corrections

NSTextViewMBS.performFindPanelAction(sender as object)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 13.2 Yes No No Yes, macOS only No
Function: Performs a find panel action specified by the sender.
Notes:
This is the generic action method for the find menu and find panel, and can be overridden to implement a custom find panel.
Sender could be a NSMenuItem or maybe also a NSView.

See also:

Feedback, Comments & Corrections

NSTextViewMBS.raiseBaseline
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 8.6 Yes No No Yes, macOS only No
Function: Raises the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view.
Notes: As such, this method defines a more primitive operation than superscripting.

Feedback, Comments & Corrections

NSTextViewMBS.replaceTextContainer(textContainer as NSTextContainerMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Replaces the text container for the group of text system objects containing the receiver, keeping the association between the receiver and its layout manager intact.
Notes: textContainer: The new text container. This method raises NSInvalidArgumentException if TextContainer is nil.

Feedback, Comments & Corrections

NSTextViewMBS.showFindIndicatorForRange(charRange as NSRangeMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Causes a temporary highlighting effect to appear around the visible portion (or portions) of the specified range.
Notes:
charRange: The character range around which indicators appear.

This method supports lozenge-style indication of find results. The indicators automatically disappear after a certain period of time, or when the method is called again, or when any of a number of changes occur to the view (such as changes to text, view size, or view position).

This method does not itself scroll the specified range to be visible; any desired scrolling should be done before this method is called, first, because the method acts only on the visible portion of the specified range, and, second, because scrolling causes the indicators to disappear. Calling this method with a zero-length range always removes any existing indicators.

Available in OS X v10.5 and later.

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo Chart Plugins