Platforms to show: All Mac Windows Linux Cross-Platform
NSTextViewMBS class
Super class: NSTextMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Controls | MBS MacCocoa Plugin | 7.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Like the editfield in Xojo.
Should be placed in a scrollview.
You can embed this view in a CustomNSViewMBS to get more events for mouse and keyboard.
Subclass of the NSTextMBS class.
- 2 events
- event shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
- event textViewDidChangeSelection
- 41 properties
- property acceptsGlyphInfo as boolean
- property allowedWritingToolsResultOptions as Integer New in 24.5
- property allowsDocumentBackgroundColorChange as boolean
- property allowsImageEditing as boolean
- property allowsUndo as boolean
- property AutomaticDashSubstitutionEnabled as boolean
- property AutomaticDataDetectionEnabled as boolean
- property AutomaticLinkDetectionEnabled as boolean
- property AutomaticQuoteSubstitutionEnabled as boolean
- property AutomaticSpellingCorrectionEnabled as boolean
- property AutomaticTextReplacementEnabled as boolean
- property backgroundColor as NSColorMBS
- property Bold as Boolean
- property ContinuousSpellCheckingEnabled as boolean
- property defaultParagraphStyle as Variant
- property displaysLinkToolTips as boolean
- property enabledTextCheckingTypes as Int64
- property GrammarCheckingEnabled as boolean
- property insertionPointColor as NSColorMBS
- property isCoalescingUndo as boolean
- property isWritingToolsActive as Boolean New in 24.5
- property Italic as Boolean
- property layoutManager as NSLayoutManagerMBS
- property linkTextAttributes as dictionary
- property markedTextAttributes as dictionary
- property RTFData as Memoryblock
- property RulerVisible as boolean
- property selectedTextAttributes as dictionary
- property smartInsertDeleteEnabled as boolean
- property spellCheckerDocumentTag as Integer
- property textContainer as NSTextContainerMBS
- property textContainerInset as NSSizeMBS
- property textContainerOrigin as NSPointMBS
- property textStorage as NSTextStorageMBS
- property typingAttributes as dictionary
- property usesFindBar as Boolean
- property usesFindPanel as boolean
- property usesFontPanel as boolean
- property usesInspectorBar as Boolean
- property usesRuler as boolean
- property writingToolsBehavior as Integer New in 24.5
- 54 methods
- method alignJustified
- method breakUndoCoalescing
- method changeAttributes
- method changeColor
- method changeDocumentBackgroundColor
- method checkTextInDocument
- method checkTextInSelection
- method complete
- method Constructor
- method Constructor(Handle as Integer)
- method Constructor(left as Double, top as Double, width as Double, height as Double)
- method didChangeText
- method insertText(attributedString as NSAttributedStringMBS)
- method insertText(text as string)
- method invalidateTextContainerOrigin
- method loosenKerning
- method lowerBaseline
- method orderFrontLinkPanel
- method orderFrontListPanel
- method orderFrontSpacingPanel
- method orderFrontSubstitutionsPanel
- method orderFrontTablePanel
- method outline
- method pasteAsPlainText
- method pasteAsRichText
- method performFindPanelAction(FindAction as Integer)
- method performFindPanelAction(sender as object)
- method raiseBaseline
- method replaceTextContainer(textContainer as NSTextContainerMBS)
- method shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string = "") as Boolean
- method showFindIndicatorForRange(charRange as NSRangeMBS)
- method startSpeaking
- method stopSpeaking
- method tightenKerning
- method toggleAutomaticDashSubstitution
- method toggleAutomaticDataDetection
- method toggleAutomaticLinkDetection
- method toggleAutomaticQuoteSubstitution
- method toggleAutomaticSpellingCorrection
- method toggleAutomaticTextReplacement
- method toggleBold
- method toggleContinuousSpellChecking
- method toggleGrammarChecking
- method toggleItalic
- method toggleSmartInsertDelete
- method toggleTraditionalCharacterShape
- method turnOffKerning
- method turnOffLigatures
- method updateDragTypeRegistration
- method updateFontPanel
- method updateRuler
- method useAllLigatures
- method useStandardKerning
- method useStandardLigatures
- 18 constants
Constants
Constant | Value | Description |
---|---|---|
NSFindPanelSubstringMatchTypeContains | 0 |
One of the constants to specify the type of substring matching used by the Find panel.
Finds a word containing the search string. Available in Mac OS X v10.5 and later. |
NSFindPanelSubstringMatchTypeEndsWith | 3 |
One of the constants to specify the type of substring matching used by the Find panel.
Finds a word ending with the search string. Available in Mac OS X v10.5 and later. |
NSFindPanelSubstringMatchTypeFullWord | 2 |
One of the constants to specify the type of substring matching used by the Find panel.
Finds a word exactly matching the search string. Available in Mac OS X v10.5 and later. |
NSFindPanelSubstringMatchTypeStartsWith | 1 |
One of the constants to specify the type of substring matching used by the Find panel.
Finds a word starting with the search string. Available in Mac OS X v10.5 and later. |
NSSelectByCharacter | 0 |
One of the constants to specify how much the text view extends the selection when the user drags the mouse.
Extends the selection character by character. |
NSSelectByParagraph | 2 |
One of the constants to specify how much the text view extends the selection when the user drags the mouse.
Extends the selection paragraph by paragraph. |
NSSelectByWord | 1 |
One of the constants to specify how much the text view extends the selection when the user drags the mouse.
Extends the selection word by word. |
NSSelectionAffinityDownstream | 1 |
One of the constants to specify the preferred direction of selection.
The selection is moving toward the bottom of the document. |
NSSelectionAffinityUpstream | 0 |
One of the constants to specify the preferred direction of selection.
The selection is moving toward the top of the document. |
Writing Tools Behavior
Constant | Value | Description |
---|---|---|
NSWritingToolsBehaviorComplete | 1 |
The complete inline-editing experience will be provided if possible. |
NSWritingToolsBehaviorDefault | 0 |
System-defined behavior, may resolve to `None`, `Complete`, or `Limited` |
NSWritingToolsBehaviorLimited | 2 |
The limited, overlay-panel experience will be provided if possible. |
NSWritingToolsBehaviorNone | -1 |
Writing Tools will ignore this view |
Writing Tools Result
Constant | Value | Description |
---|---|---|
NSWritingToolsResultDefault | 0 |
System—defined behavior |
NSWritingToolsResultList | 4 |
Lists. implies `RichText`, and Writing Tools may provide attributes for list layout |
NSWritingToolsResultPlainText | 1 |
Writing Tools will provide plain text in proofreading suggestions or rewrites |
NSWritingToolsResultRichText | 2 |
as well as plain text, Writing Tools will provide text attributes in proofreading suggestions or rewrites that are natively supported or known to be easily adopted (such as lists) |
NSWritingToolsResultTable | 8 |
Tables. implies `RichText`, and Writing Tools may provide attributes for tabular layout Example |
Super class NSTextMBS
- 5 events
- event textDidBeginEditing
- event textDidChange
- event textDidEndEditing
- event textShouldBeginEditing as boolean
- event textShouldEndEditing as boolean
- 17 properties
- property alignment as Integer
- property backgroundColor as NSColorMBS
- property baseWritingDirection as Integer
- property drawsBackground as boolean
- property Enabled as boolean
- property font as NSFontMBS
- property importsGraphics as boolean
- property isEditable as boolean
- property isFieldEditor as boolean
- property isHorizontallyResizable as boolean
- property isRichText as boolean
- property isSelectable as boolean
- property isVerticallyResizable as boolean
- property selectedRange as NSRangeMBS
- property text as string
- property textColor as NSColorMBS
- property usesFontPanel as boolean
- 42 methods
- method alignCenter
- method alignLeft
- method alignRight
- method changeFont
- method checkSpelling
- method Constructor
- method Constructor(Handle as Integer)
- method Constructor(left as Double, top as Double, width as Double, height as Double)
- method copy
- method copyFont
- method copyRuler
- method cut
- method delete
- method isRulerVisible as boolean
- method maxSizeHeight as Double
- method maxSizeWidth as Double
- method minSizeHeight as Double
- method minSizeWidth as Double
- method paste
- method pasteFont
- method pasteRuler
- method readRTFDFromFile(file as folderitem) as boolean
- method replaceCharactersInRangeWithRTF(start as Integer, length as Integer, rtfData as MemoryBlock)
- method replaceCharactersInRangeWithRTFD(start as Integer, length as Integer, rtfdData as MemoryBlock)
- method replaceCharactersInRangeWithString(start as Integer, length as Integer, text as string)
- method RTFDFromRange(start as Integer, length as Integer) as MemoryBlock
- method RTFFromRange(start as Integer, length as Integer) as MemoryBlock
- method scrollRangeToVisible(start as Integer, length as Integer)
- method selectAll
- method setFontForRange(font as NSFontMBS, start as Integer, length as Integer)
- method setMaxSize(width as Double, height as Double)
- method setMinSize(width as Double, height as Double)
- method setTextColorForRange(colorValue as NSColorMBS, start as Integer, length as Integer)
- method showGuessPanel
- method sizeToFit
- method subscript
- method superscript
- method textLength as Integer
- method toggleRuler
- method underline
- method unscript
- method writeRTFDToFile(file as folderitem, atomically as boolean) as boolean
- 2 shared methods
- shared method NSCenterTextAlignment as Integer
- shared method NSRightTextAlignment as Integer
- 28 constants
Constants
Constant | Value | Description |
---|---|---|
NSBackspaceCharacter | 8 | One of the constants to specify commonly used Unicode characters. |
NSBackTabCharacter | &h19 | One of the constants to specify commonly used Unicode characters. |
NSBacktabTextMovement | &h12 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The Backtab (Shift-Tab) key was pressed. |
NSCancelTextMovement | &h17 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The user cancelled the completion. Available in Mac OS X v10.3 and later. |
NSCarriageReturnCharacter | 13 | One of the constants to specify commonly used Unicode characters. |
NSDeleteCharacter | &h7F | One of the constants to specify commonly used Unicode characters. |
NSDownTextMovement | &h16 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The down arrow key was pressed. |
NSEnterCharacter | 3 | One of the constants to specify commonly used Unicode characters. |
NSFormFeedCharacter | 12 | One of the constants to specify commonly used Unicode characters. |
NSIllegalTextMovement | 0 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
Currently unused. |
NSLeftTextMovement | &h13 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The left arrow key was pressed. |
NSLineSeparatorCharacter | &h2028 | One of the constants to specify commonly used Unicode characters. |
NSNewlineCharacter | 10 | One of the constants to specify commonly used Unicode characters. |
NSOtherTextMovement | 0 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The user performed some undefined action. Available in Mac OS X v10.3 and later. |
NSParagraphSeparatorCharacter | &h2029 | One of the constants to specify commonly used Unicode characters. |
NSReturnTextMovement | &h10 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The Return key was pressed. |
NSRightTextMovement | &h14 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The right arrow key was pressed. |
NSTabCharacter | 9 | One of the constants to specify commonly used Unicode characters. |
NSTabTextMovement | &h11 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The Tab key was pressed. |
NSTextWritingDirectionEmbedding | 0 |
An additional constant to specify the writing direction.
Direction is embedded. Available in Mac OS X v10.6 and later. |
NSTextWritingDirectionOverride | 1 |
An additional constant to specify the writing direction.
Direction override Available in Mac OS X v10.6 and later. |
NSUpTextMovement | &h15 |
One of the constants used to specify the reason for a change of editing focus among text fields, in essence answering the question "why am I leaving the field?"
The up arrow key was pressed. |
Alignment Modes
Constant | Value | Description |
---|---|---|
NSJustifiedTextAlignment | 3 |
Fully-justified. The last line in a paragraph is natural-aligned. |
NSLeftTextAlignment | 0 |
Visually left aligned |
NSNaturalTextAlignment | 4 |
Indicates the default alignment for script. |
Writing Direction
Constant | Value | Description |
---|---|---|
NSWritingDirectionLeftToRight | 0 |
The writing direction is left to right. Available in Mac OS X v10.2 and later. |
NSWritingDirectionNatural | -1 |
The writing direction is determined using the Unicode Bidi Algorithm rules P2 and P3. Default. Available in Mac OS X v10.4 and later. |
NSWritingDirectionRightToLeft | 1 |
The writing direction is right to left. Available in Mac OS X v10.2 and later. Example |
Super class NSViewMBS
- 43 properties
- property acceptsTouchEvents as boolean
- property allowsVibrancy as Boolean
- property alphaValue as Double
- property autoresizesSubviews as boolean
- property autoresizingMask as Integer
- property bounds as NSRectMBS
- property boundsRotation as Double
- property canBecomeKeyView as boolean
- property canDraw as boolean
- property canDrawConcurrently as boolean
- property className as string
- property classPath as string
- property clipsToBounds as Boolean
- property focusRingType as Integer
- property frame as NSRectMBS
- property frameCenterRotation as Double
- property frameHeight as Double
- property frameLeft as Double
- property frameRotation as Double
- property frameTop as Double
- property frameWidth as Double
- property identifier as string
- property isFlipped as Boolean
- property isHidden as Boolean
- property isHiddenOrHasHiddenAncestor as Boolean
- property isOpaque as Boolean
- property isRotatedFromBase as Boolean
- property isRotatedOrScaledFromBase as Boolean
- property layer as Variant
- property layerUsesCoreImageFilters as Boolean
- property needsDisplay as Boolean
- property nextKeyView as NSViewMBS
- property opaqueAncestor as NSViewMBS
- property RetainCount as Integer
- property superview as NSViewMBS
- property toolTip as string
- property userInteractionEnabled as Boolean
- property visibleRect as NSRectMBS
- property wantsDefaultClipping as boolean
- property wantsLayer as Boolean
- property wantsRestingTouches as boolean
- property window as NSWindowMBS
- property compositingFilter as variant
- 62 methods
- method addSubview(subview as NSViewMBS)
- method addSubview(subview as NSViewMBS, positioned as Integer, relativeToView as NSViewMBS)
- method addToolTipRect(rect as NSRectMBS, tooltip as NSViewTooltipMBS)
- method adjustScroll(rect as NSRectMBS) as NSRectMBS New in 24.5
- method ancestorSharedWithView(view as NSViewMBS) as NSViewMBS
- method animator as NSViewMBS
- method autoscroll(e as NSEventMBS) as Boolean New in 24.5
- method backgroundFilters as variant()
- method beginDraggingSessionWithItems(items() as Variant, e as NSEventMBS, source as NSViewMBS) as Variant
- method Constructor
- method Constructor(Handle as Integer)
- method Constructor(left as Double, top as Double, width as Double, height as Double)
- method contentFilters as variant()
- method convertPointFromView(point as NSPointMBS, View as NSViewMBS) as NSPointMBS
- method convertPointToView(point as NSPointMBS, View as NSViewMBS) as NSPointMBS
- method convertRectFromView(rect as NSRectMBS, View as NSViewMBS) as NSRectMBS
- method convertRectToView(rect as NSRectMBS, View as NSViewMBS) as NSRectMBS
- method convertSizeFromView(Size as NSSizeMBS, View as NSViewMBS) as NSSizeMBS
- method convertSizeToView(Size as NSSizeMBS, View as NSViewMBS) as NSSizeMBS
- method dataWithEPSInsideRect(left as Double, top as Double, width as Double, height as Double) as Memoryblock
- method dataWithPDFInsideRect(left as Double, top as Double, width as Double, height as Double) as Memoryblock
- method dataWithPDFInsideRect(r as NSRectMBS) as Memoryblock
- method dragImage(image as NSImageMBS, viewLocation as NSPointMBS, offset as NSSizeMBS, NSEvent as NSEventMBS, pboard as NSPasteboardMBS, source as NSViewMBS, slideFlag as boolean)
- method drawFocusRingMask
- method enclosingMenuItem as Variant
- method enclosingScrollView as Variant
- method focusRingMaskBounds as NSRectMBS
- method hitTest(x as double, y as double) as NSViewMBS
- method isDescendantOf(view as NSViewMBS) as boolean
- method makeBackingLayer as Variant
- method nextValidKeyView as NSViewMBS
- method noteFocusRingMaskChanged
- method pageFooter as NSAttributedStringMBS
- method pageHeader as NSAttributedStringMBS
- method previousKeyView as NSViewMBS
- method previousValidKeyView as NSViewMBS
- method print
- method registeredDraggedTypes as string()
- method registerForDraggedTypes(Types() as string)
- method removeAllToolTips
- method removeFromSuperview
- method removeFromSuperviewWithoutNeedingDisplay
- method RenderImage(subviews as boolean = false, flipped as boolean = false) as variant
- method replaceSubview(oldView as NSViewMBS, newView as NSViewMBS)
- method rotateByAngle(angle as Double)
- method scaleUnitSquareToSize(size as NSSizeMBS)
- method Screenshot as Picture
- method scrollPoint(x as double, y as double) New in 24.5
- method scrollRectToVisible(rect as NSRectMBS) as Boolean New in 24.5
- method setBackgroundFilters(Filters() as variant)
- method setBoundsOrigin(origin as NSPointMBS)
- method setBoundsOrigin(x as Double, y as Double)
- method setBoundsSize(size as NSSizeMBS)
- method setBoundsSize(width as Double, height as Double)
- method setContentFilters(Filters() as variant)
- method setFocus
- method setFrameOrigin(origin as NSPointMBS)
- method setFrameOrigin(x as Double, y as Double)
- method setFrameSize(size as NSSizeMBS)
- method setFrameSize(width as Double, height as Double)
- method subviews(recursive as boolean = false) as NSViewMBS()
- method unregisterDraggedTypes
- 5 shared methods
- shared method NSViewBoundsDidChangeNotification as string
- shared method NSViewDidUpdateTrackingAreasNotification as string
- shared method NSViewFocusDidChangeNotification as string
- shared method NSViewFrameDidChangeNotification as string
- shared method NSViewGlobalFrameDidChangeNotification as string
- 21 constants
Constants
Constant | Value | Description |
---|---|---|
NSBezelBorder | 2 |
One of the constants to specify the type of a view's border.
A concave border that makes the view look sunken. |
NSFocusRingTypeDefault | 0 |
One of the constants for the focusringtype property.
The default focus ring type for NSView or NSCell. |
NSFocusRingTypeExterior | 2 |
One of the constants for the focusringtype property.
The standard Aqua focus ring. |
NSFocusRingTypeNone | 1 |
One of the constants for the focusringtype property.
No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring. |
NSGrooveBorder | 3 |
One of the constants to specify the type of a view's border.
A thin border that looks etched around the image. |
NSLineBorder | 1 |
One of the constants to specify the type of a view's border.
A black line border around the view. |
NSNoBorder | 0 |
One of the constants to specify the type of a view's border.
No border. |
NSViewHeightSizable | 16 |
One of the constants for the autoresizingMask property.
The receiver's height is flexible. |
NSViewLayerContentsRedrawBeforeViewResize | 3 | One of the view layer content redraw policy constants. |
NSViewLayerContentsRedrawDuringViewResize | 2 | One of the view layer content redraw policy constants. |
NSViewLayerContentsRedrawNever | 0 | One of the view layer content redraw policy constants. |
NSViewLayerContentsRedrawOnSetNeedsDisplay | 1 | One of the view layer content redraw policy constants. |
NSViewMaxXMargin | 4 |
One of the constants for the autoresizingMask property.
The right margin between the receiver and its superview is flexible. |
NSViewMaxYMargin | 32 |
One of the constants for the autoresizingMask property.
The top margin between the receiver and its superview is flexible. |
NSViewMinXMargin | 1 |
One of the constants for the autoresizingMask property.
The left margin between the receiver and its superview is flexible. |
NSViewMinYMargin | 8 |
One of the constants for the autoresizingMask property.
The bottom margin between the receiver and its superview is flexible. |
NSViewNotSizable | 0 |
One of the constants for the autoresizingMask property.
The receiver cannot be resized. |
NSViewWidthSizable | 2 |
One of the constants for the autoresizingMask property.
The receiver's width is flexible. |
Window Order Constants
Constant | Value | Description |
---|---|---|
NSWindowAbove | 1 |
Moves the window above the indicated window. |
NSWindowBelow | -1 |
Moves the window below the indicated window. |
NSWindowOut | 0 |
Moves the window off the screen. |
Super class NSResponderMBS
- 3 properties
- property Handle as Integer
- property menu as NSMenuMBS
- property nextResponder as NSResponderMBS
- 124 methods
- method beginGestureWithEvent(e as NSEventMBS)
- method cancelOperation
- method capitalizeWord
- method centerSelectionInVisibleArea
- method changeCaseOfLetter
- method complete
- method Constructor Private
- method cursorUpdate(e as NSEventMBS)
- method deleteBackward
- method deleteBackwardByDecomposingPreviousCharacter
- method deleteForward
- method deleteToBeginningOfLine
- method deleteToBeginningOfParagraph
- method deleteToEndOfLine
- method deleteToEndOfParagraph
- method deleteToMark
- method deleteWordBackward
- method deleteWordForward
- method endGestureWithEvent(e as NSEventMBS)
- method flagsChanged(e as NSEventMBS)
- method flushBufferedKeyEvents
- method helpRequested(e as NSEventMBS)
- method indent
- method insertBacktab
- method insertContainerBreak
- method insertDoubleQuoteIgnoringSubstitution
- method insertLineBreak
- method insertNewline
- method insertNewlineIgnoringFieldEditor
- method insertParagraphSeparator
- method insertSingleQuoteIgnoringSubstitution
- method insertTab
- method insertTabIgnoringFieldEditor
- method keyDown(e as NSEventMBS)
- method keyUp(e as NSEventMBS)
- method lowercaseWord
- method magnifyWithEvent(e as NSEventMBS)
- method makeBaseWritingDirectionLeftToRight
- method makeBaseWritingDirectionNatural
- method makeBaseWritingDirectionRightToLeft
- method makeTextWritingDirectionLeftToRight
- method makeTextWritingDirectionNatural
- method makeTextWritingDirectionRightToLeft
- method mouseDown(e as NSEventMBS)
- method mouseDragged(e as NSEventMBS)
- method mouseEntered(e as NSEventMBS)
- method mouseExited(e as NSEventMBS)
- method mouseMoved(e as NSEventMBS)
- method mouseUp(e as NSEventMBS)
- method moveBackward
- method moveBackwardAndModifySelection
- method moveDown
- method moveDownAndModifySelection
- method moveForward
- method moveForwardAndModifySelection
- method moveLeft
- method moveLeftAndModifySelection
- method moveParagraphBackwardAndModifySelection
- method moveParagraphForwardAndModifySelection
- method moveRight
- method moveRightAndModifySelection
- method moveToBeginningOfDocument
- method moveToBeginningOfDocumentAndModifySelection
- method moveToBeginningOfLine
- method moveToBeginningOfLineAndModifySelection
- method moveToBeginningOfParagraph
- method moveToBeginningOfParagraphAndModifySelection
- method moveToEndOfDocument
- method moveToEndOfDocumentAndModifySelection
- method moveToEndOfLine
- method moveToEndOfLineAndModifySelection
- method moveToEndOfParagraph
- method moveToEndOfParagraphAndModifySelection
- method moveToLeftEndOfLine
- method moveToLeftEndOfLineAndModifySelection
- method moveToRightEndOfLine
- method moveToRightEndOfLineAndModifySelection
- method moveUp
- method moveUpAndModifySelection
- method moveWordBackward
- method moveWordBackwardAndModifySelection
- method moveWordForward
- method moveWordForwardAndModifySelection
- method moveWordLeft
- method moveWordLeftAndModifySelection
- method moveWordRight
- method moveWordRightAndModifySelection
- method otherMouseDown(e as NSEventMBS)
- method otherMouseDragged(e as NSEventMBS)
- method otherMouseUp(e as NSEventMBS)
- method pageDown
- method pageDownAndModifySelection
- method pageUp
- method pageUpAndModifySelection
- method performMnemonic(theString as string) as boolean
- method presentError(e as NSErrorMBS) as boolean
- method rightMouseDown(e as NSEventMBS)
- method rightMouseDragged(e as NSEventMBS)
- method rightMouseUp(e as NSEventMBS)
- method rotateWithEvent(e as NSEventMBS)
- method scrollLineDown
- method scrollLineUp
- method scrollPageDown
- method scrollPageUp
- method scrollToBeginningOfDocument
- method scrollToEndOfDocument
- method scrollWheel(e as NSEventMBS)
- method selectAll
- method selectLine
- method selectParagraph
- method selectToMark
- method selectWord
- method setMark
- method showContextHelp
- method showWritingTools New in 24.5
- method swapWithMark
- method swipeWithEvent(e as NSEventMBS)
- method tabletPoint(e as NSEventMBS)
- method tabletProximity(e as NSEventMBS)
- method transpose
- method transposeWords
- method undoManager as NSUndoManagerMBS
- method uppercaseWord
- method yank
Sub classes:
Some methods using this class:
- DesktopTextArea.NSTextViewMBS as NSTextViewMBS
- DesktopTextField.NSTextViewMBS as NSTextViewMBS
- TextArea.NSTextViewMBS as NSTextViewMBS
- TextField.NSTextViewMBS as NSTextViewMBS
Some properties using for this class:
- DesktopNSTextViewControlMBS.View as NSTextViewMBS
- NSTextViewControlMBS.View as NSTextViewMBS
- OSAScriptControllerMBS.resultView as NSTextViewMBS
- NSTextContainerMBS.textView as NSTextViewMBS
Some events using this class:
- CustomNSTextFieldCellMBS.fieldEditorForView(controlView as NSViewMBS) as NSTextViewMBS
Some examples using this class:
- /MacCG/Attributed String print
- /MacCocoa/NSStatusItem/Statusitem with slider in menubar
- /MacCocoa/Shadow Test
- /MacControls/Cocoa Controls
- /MacControls/NSTextFinder and find bar
- /MacControls/Textarea Transparency
- /MacControls/TextView advanced
- /MacExtras/OSAKit Script Editor
- /MacFrameworks/Cocoa Controls/Cocoa Controls
- /MacFrameworks/Cocoa Controls/TextView with events
Blog Entries
- Using writing tools in Xojo for Apple Intelligence
- RTF functions in MBS Plugins
- Adding a Scintilla based control to Xojo
- Use Text Finder for TextArea in Xojo
- Line Wrap for Textarea in Xojo Mac applications
- SuperScript and SubScript for Xojo Textarea
- Tip of the day: Adding links to Textarea on OS X
- Tip of the day: Autohide scrollbar
- Using NSTextViewMBS
- MonkeyBread Software Releases the MBS REALbasic plug-ins 8.4
Xojo Developer Magazine
Videos
Release notes
- Version 24.5
- Added isWritingToolsActive, writingToolsBehavior and allowedWritingToolsResultOptions properties for NSTextViewMBS class.
- Version 19.5
- Fixed insertText method in NSTextViewMBS to work for empty texts.
- Version 18.5
- Added find bar methods for NSScrollViewMBS and NSTextViewMBS classes.
The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacCocoa Plugin, MBS MacExtras Plugin.