MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
NSTextViewMBS class
Super class: NSTextMBS
class, Cocoa Controls,
MBS Real Studio Cocoa Plugin
(NSText),
class NSTextViewMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The cocoa text view class.
Notes:
Like the editfield in Realbasic.
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.
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The cocoa text view class.
Notes:
Like the editfield in Realbasic.
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.
- event shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
- event textViewDidChangeSelection
- property acceptsGlyphInfo as boolean
- 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 ContinuousSpellCheckingEnabled as boolean
- property defaultParagraphStyle as variant
- property displaysLinkToolTips as boolean
- property enabledTextCheckingTypes as Int64
- property GrammarCheckingEnabled as boolean
- property insertionPointColor as NSColorMBS
- property linkTextAttributes as dictionary
- property markedTextAttributes as dictionary
- property RulerVisible as boolean
- property selectedTextAttributes as dictionary
- property smartInsertDeleteEnabled as boolean
- property textContainer as NSTextContainerMBS
- property textContainerInset as NSSizeMBS
- property typingAttributes as dictionary
- property usesFindPanel as boolean
- property usesFontPanel as boolean
- property usesRuler as boolean
- 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 insertText(attributedString as NSAttributedStringMBS)
- method insertText(text as string)
- method invalidateTextContainerOrigin
- method isCoalescingUndo as boolean
- method layoutManager as NSLayoutManagerMBS
- 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 showFindIndicatorForRange(charRange as NSRangeMBS)
- method spellCheckerDocumentTag as integer
- method startSpeaking
- method stopSpeaking
- method textContainerOrigin as NSPointMBS
- method textStorage as NSTextStorageMBS
- method tightenKerning
- method toggleAutomaticDashSubstitution
- method toggleAutomaticDataDetection
- method toggleAutomaticLinkDetection
- method toggleAutomaticQuoteSubstitution
- method toggleAutomaticSpellingCorrection
- method toggleAutomaticTextReplacement
- method toggleContinuousSpellChecking
- method toggleGrammarChecking
- method toggleSmartInsertDelete
- method toggleTraditionalCharacterShape
- method turnOffKerning
- method turnOffLigatures
- method updateDragTypeRegistration
- method updateFontPanel
- method updateRuler
- method useAllLigatures
- method useStandardKerning
- method useStandardLigatures
- const NSFindPanelSubstringMatchTypeContains=0
- const NSFindPanelSubstringMatchTypeEndsWith=3
- const NSFindPanelSubstringMatchTypeFullWord=2
- const NSFindPanelSubstringMatchTypeStartsWith=1
- const NSSelectByCharacter=0
- const NSSelectByParagraph=2
- const NSSelectByWord=1
- const NSSelectionAffinityDownstream=1
- const NSSelectionAffinityUpstream=0
Super class NSTextMBS
- event textDidBeginEditing
- event textDidChange
- event textDidEndEditing
- event textShouldBeginEditing as boolean
- event textShouldEndEditing as boolean
- property alignment as integer
- property backgroundColor as NSColorMBS
- property baseWritingDirection as integer
- property drawsBackground 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
- 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
- const NSBackspaceCharacter=8
- const NSBackTabCharacter=&h19
- const NSBacktabTextMovement=&h12
- const NSCancelTextMovement=&h17
- const NSCarriageReturnCharacter=13
- const NSDeleteCharacter=&h7F
- const NSDownTextMovement=&h16
- const NSEnterCharacter=3
- const NSFormFeedCharacter=12
- const NSIllegalTextMovement=0
- const NSLeftTextMovement=&h13
- const NSLineSeparatorCharacter=&h2028
- const NSNewlineCharacter=10
- const NSOtherTextMovement=0
- const NSParagraphSeparatorCharacter=&h2029
- const NSReturnTextMovement=&h10
- const NSRightTextMovement=&h14
- const NSTabCharacter=9
- const NSTabTextMovement=&h11
- const NSTextWritingDirectionEmbedding=0
- const NSTextWritingDirectionOverride=1
- const NSUpTextMovement=&h15
Alignment Modes
| Constant | Value | Description |
|---|---|---|
| NSCenterTextAlignment | 2 |
Visually centered |
| 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. |
| NSRightTextAlignment | 1 |
Visually right aligned |
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. |
Super class NSViewMBS
- property frameHeight as double
- property frameLeft as double
- property frameTop as double
- property frameWidth as double
- property acceptsTouchEvents as boolean
- property alphaValue as double
- property autoresizesSubviews as boolean
- property autoresizingMask as Integer
- property bounds as NSRectMBS
- property boundsRotation as double
- property canDrawConcurrently as boolean
- property focusRingType as Integer
- property frame as NSRectMBS
- property frameCenterRotation as double
- property frameRotation as double
- property identifier as string
- property isHidden as Boolean
- property layer as variant
- property needsDisplay as Boolean
- property nextKeyView as NSViewMBS
- property toolTip as string
- property wantsLayer as Boolean
- property wantsRestingTouches as boolean
- method addSubview(subview as NSViewMBS)
- method addSubview(subview as NSViewMBS, positioned as integer, relativeToView as NSViewMBS)
- method ancestorSharedWithView(view as NSViewMBS) as NSViewMBS
- method animator as NSViewMBS
- method beginDraggingSessionWithItems(items() as NSDraggingItemMBS, e as NSEventMBS, source as NSViewMBS) as NSDraggingSessionMBS
- method canBecomeKeyView as boolean
- method canDraw as boolean
- method className as string
- method classPath as string
- method Constructor
- method Constructor(Handle as Integer)
- method Constructor(left as double, top as double, width as double, height as double)
- 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 drawFocusRingMask
- method enclosingMenuItem as variant
- method enclosingScrollView as variant
- method focusRingMaskBounds as NSRectMBS
- method isDescendantOf(view as NSViewMBS) as boolean
- method isFlipped as Boolean
- method isHiddenOrHasHiddenAncestor as Boolean
- method isOpaque as Boolean
- method isRotatedFromBase as Boolean
- method isRotatedOrScaledFromBase as Boolean
- method makeBackingLayer as variant
- method nextValidKeyView as NSViewMBS
- method noteFocusRingMaskChanged
- 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
- method opaqueAncestor as NSViewMBS
- 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) as variant
- method replaceSubview(oldView as NSViewMBS, newView as NSViewMBS)
- method rotateByAngle(angle as double)
- method scaleUnitSquareToSize(size as NSSizeMBS)
- method setBoundsOrigin(left as double, top as double)
- method setBoundsOrigin(origin as NSPointMBS)
- method setBoundsSize(size as NSSizeMBS)
- method setBoundsSize(width as double, height as double)
- method setFocus
- method setFrameOrigin(left as double, top as double)
- method setFrameOrigin(origin as NSPointMBS)
- method setFrameSize(size as NSSizeMBS)
- method setFrameSize(width as double, height as double)
- method subviews as NSViewMBS()
- method superview as NSViewMBS
- method unregisterDraggedTypes
- method visibleRect as NSRectMBS
- method wantsDefaultClipping as boolean
- method window as NSWindowMBS
- const NSBezelBorder = 2
- const NSFocusRingTypeDefault = 0
- const NSFocusRingTypeExterior = 2
- const NSFocusRingTypeNone = 1
- const NSGrooveBorder = 3
- const NSLineBorder = 1
- const NSNoBorder = 0
- const NSViewHeightSizable = 16
- const NSViewLayerContentsRedrawBeforeViewResize = 3
- const NSViewLayerContentsRedrawDuringViewResize = 2
- const NSViewLayerContentsRedrawNever = 0
- const NSViewLayerContentsRedrawOnSetNeedsDisplay = 1
- const NSViewMaxXMargin = 4
- const NSViewMaxYMargin = 32
- const NSViewMinXMargin = 1
- const NSViewMinYMargin = 8
- const NSViewNotSizable = 0
- const NSViewWidthSizable = 2
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
- property Handle as Integer
- property menu as NSMenuMBS
- property nextResponder as NSResponderMBS
- method beginGestureWithEvent(e as NSEventMBS)
- method cancelOperation
- method capitalizeWord
- method centerSelectionInVisibleArea
- method changeCaseOfLetter
- method complete
- method Constructor
- 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 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
This class has no sub classes.
Some methods using this class:
Some properties using for this class:
Some examples which use this class:
- /Cocoa/NSSavePanel
- /Cocoa/NSStatusItem/Statusitem with slider in menubar
- /Cocoa/NSStatusItem/Statusitem with textfield in menubar
- /Cocoa/NSTextView Selection
- /Cocoa/NSTextView show invisible characters
- /Cocoa/NSTextView Unlimited Tab
- /Cocoa/Text in titlebar
- /Cocoa/TextEdit MBS
- /Cocoa/TextView advanced
- /Cocoa/TransparentTextFields
- /Leopard/Cocoa Controls/TextView
- /Leopard/Cocoa Controls/TextView with events
- /Leopard/CustomNSScroller/Dark scrollbar
The items on this page are in the following plugins: MBS Real Studio Cocoa Plugin, MBS Real Studio CocoaBase Plugin.
Links
Bilder aus Nickenich