# NSTextView

scottc@net-community.com
far@ix.netcom.com
boehring@biomed.ruhr-uni-bochum.de
FredKiefer@gmx.de
n.pero@mi.flashnet.it
pyrivail@ens-lyon.fr
Generated at 2026-06-27 19:09:52 +0000
1996, 1998, 2000, 2001, 2002, 2003, 2008, 2020 Free Software Foundation, Inc.
Software documentation for the NSTextView class
AppKit/NSTextView.h
NSTextInput
NSUserInterfaceValidations
NSTextFinderClient
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Description forthcoming.
defaultTypingAttributes
Returns the default typing attributes: black text, default paragraph style (as returned by [NSParagraphStyle defaultParagraphStyle]), and default user font and size (as returned by [NSFont userFontOfSize: 0.0]). GNUstep extension.
registerForServices
Description forthcoming.
_updateInputMethodState
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
_updateInputMethodWithInsertionPoint:
insertionPoint
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
allowsUndo
Description forthcoming.
defaultParagraphStyle
Description forthcoming.
didChangeText
Description forthcoming.
initWithFrame:
frameRect
Description forthcoming.
initWithFrame:
frameRect
textContainer:
container
Description forthcoming.
insertionPointColor
Description forthcoming.
invalidateTextContainerOrigin
Description forthcoming.
isContinuousSpellCheckingEnabled
Description forthcoming.
layoutManager
Description forthcoming.
linkTextAttributes
Description forthcoming.
markedTextAttributes
Description forthcoming.
pasteAsPlainText:
sender
Description forthcoming.
pasteAsRichText:
sender
Description forthcoming.
rangeForUserCharacterAttributeChange
Description forthcoming.
rangeForUserCompletion
Description forthcoming.
rangeForUserParagraphAttributeChange
Description forthcoming.
rangeForUserTextChange
Description forthcoming.
rangesForUserCharacterAttributeChange
Description forthcoming.
rangesForUserParagraphAttributeChange
Description forthcoming.
rangesForUserTextChange
Description forthcoming.
replaceCharactersInRange:
aRange
withAttributedString:
aString
Description forthcoming.
replaceCharactersInRange:
aRange
withString:
aString
Description forthcoming.
replaceTextContainer:
newContainer
Description forthcoming.
selectedTextAttributes
Description forthcoming.
setAlignment:
alignment
range:
range
Description forthcoming.
setAllowsUndo:
flag
Description forthcoming.
setConstrainedFrameSize:
desiredSize
Description forthcoming.
setContinuousSpellCheckingEnabled:
flag
Description forthcoming.
setDefaultParagraphStyle:
style
Description forthcoming.
setInsertionPointColor:
color
Description forthcoming.
setLinkTextAttributes:
attributeDictionary
Description forthcoming.
setMarkedTextAttributes:
attributeDictionary
Description forthcoming.
setRulerVisible:
flag
Description forthcoming.
setSelectedTextAttributes:
attributeDictionary
Description forthcoming.
setSmartInsertDeleteEnabled:
flag
Description forthcoming.
setTextContainer:
container
Description forthcoming.
setTextContainerInset:
inset
Description forthcoming.
setUsesFindPanel:
flag
Description forthcoming.
setUsesRuler:
flag
Description forthcoming.
shouldChangeTextInRange:
affectedCharRange
replacementString:
replacementString
Description forthcoming.
shouldChangeTextInRanges:
ranges
replacementStrings:
strings
Description forthcoming.
smartInsertDeleteEnabled
Description forthcoming.
textContainer
Description forthcoming.
textContainerInset
Description forthcoming.
textContainerOrigin
Description forthcoming.
textStorage
Description forthcoming.
usesFindPanel
Description forthcoming.
usesRuler
Description forthcoming.
Software documentation for the NSObject(NSTextViewDelegate) informal protocol
AppKit/NSTextView.h
Description forthcoming.
textView:
textView
clickedOnCell:
cell
inRect:
cellFrame
Description forthcoming.
textView:
textView
clickedOnCell:
cell
inRect:
cellFrame
atIndex:
charIndex
Description forthcoming.
textView:
textView
clickedOnLink:
link
Description forthcoming.
textView:
textView
clickedOnLink:
link
atIndex:
charIndex
Description forthcoming.
textView:
textView
completions:
words
forPartialWordRange:
range
indexOfSelectedItem:
index
Description forthcoming.
textView:
textView
doCommandBySelector:
commandSelector
Description forthcoming.
textView:
textView
doubleClickedOnCell:
cell
inRect:
cellFrame
Description forthcoming.
textView:
textView
doubleClickedOnCell:
cell
inRect:
cellFrame
atIndex:
charIndex
Description forthcoming.
textView:
view
draggedCell:
cell
inRect:
rect
event:
event
Description forthcoming.
textView:
view
draggedCell:
cell
inRect:
rect
event:
event
atIndex:
charIndex
Description forthcoming.
textView:
textView
shouldChangeTextInRange:
affectedCharRange
replacementString:
replacementString
Description forthcoming.
textView:
textView
shouldChangeTextInRanges:
ranges
replacementStrings:
strings
Description forthcoming.
textView:
textView
shouldChangeTypingAttributes:
oldAttribs
toAttributes:
newAttribs
Description forthcoming.
textView:
textView
willChangeSelectionFromCharacterRange:
oldSelectedCharRange
toCharacterRange:
newSelectedCharRange
Description forthcoming.
textView:
textView
willChangeSelectionFromCharacterRanges:
oldSelectedCharRanges
toCharacterRanges:
newSelectedCharRanges
Description forthcoming.
textView:
textView
willDisplayToolTip:
tooltip
forCharacterAtIndex:
index
Description forthcoming.
textViewDidChangeSelection:
notification
Description forthcoming.
textViewDidChangeTypingAttributes:
notification
Description forthcoming.
undoManagerForTextView:
view
Description forthcoming.
Software documentation for the NSTextView(GSTextViewSync) category
AppKit/NSTextView.h
Description forthcoming.
_layoutManagerDidInvalidateLayout
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
_recacheDelegateResponses
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
_syncTextViewsByCalling:
action
withFlag:
flag
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
_updateMultipleTextViews
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
Software documentation for the NSTextView(UserActions) category
AppKit/NSTextView.h
Description forthcoming.
alignJustified:
sender
Description forthcoming.
loosenKerning:
sender
Description forthcoming.
lowerBaseline:
sender
Description forthcoming.
outline:
sender
Description forthcoming.
raiseBaseline:
sender
Description forthcoming.
setBaseWritingDirection:
direction
range:
range
Description forthcoming.
tightenKerning:
sender
Description forthcoming.
toggleBaseWritingDirection:
sender
Description forthcoming.
toggleContinuousSpellChecking:
sender
Description forthcoming.
toggleTraditionalCharacterShape:
sender
Description forthcoming.
transpose:
sender
Description forthcoming.
turnOffKerning:
sender
Description forthcoming.
turnOffLigatures:
sender
Description forthcoming.
useAllLigatures:
sender
Description forthcoming.
useStandardKerning:
sender
Description forthcoming.
useStandardLigatures:
sender
Description forthcoming.
Software documentation for the NSTextView(leftovers) category
AppKit/NSTextView.h
Description forthcoming.
acceptableDragTypes
Description forthcoming.
acceptsGlyphInfo
Description forthcoming.
allowsDocumentBackgroundColorChange
Description forthcoming.
breakUndoCoalescing
Description forthcoming.
changeAttributes:
sender
Description forthcoming.
changeDocumentBackgroundColor:
sender
Description forthcoming.
cleanUpAfterDragOperation
Description forthcoming.
clickedOnLink:
link
atIndex:
charIndex
Description forthcoming.
complete:
sender
Description forthcoming.
completionsForPartialWordRange:
range
indexOfSelectedItem:
index
Description forthcoming.
dragImageForSelectionWithEvent:
event
origin:
origin
Description forthcoming.
dragOperationForDraggingInfo:
dragInfo
type:
type
Description forthcoming.
dragSelectionWithEvent:
event
offset:
mouseOffset
slideBack:
slideBack
Description forthcoming.
drawInsertionPointInRect:
rect
color:
color
turnedOn:
flag
Description forthcoming.
drawViewBackgroundInRect:
rect
Description forthcoming.
insertCompletion:
word
forPartialWordRange:
range
movement:
movement
isFinal:
flag
Description forthcoming.
orderFrontLinkPanel:
sender
Description forthcoming.
orderFrontListPanel:
sender
Description forthcoming.
orderFrontTablePanel:
sender
Description forthcoming.
performFindPanelAction:
sender
Description forthcoming.
preferredPasteboardTypeFromArray:
availableTypes
restrictedToTypesFromArray:
allowedTypes
Description forthcoming.
readSelectionFromPasteboard:
pboard
Description forthcoming.
readSelectionFromPasteboard:
pboard
type:
type
Description forthcoming.
readablePasteboardTypes
Description forthcoming.
selectedRanges
Description forthcoming.
selectionAffinity
Description forthcoming.
selectionGranularity
Description forthcoming.
selectionRangeForProposedRange:
proposedCharRange
granularity:
gr
Return a range of text which encompasses proposedCharRange but is extended (if necessary) to match the type of selection specified by gr.
setAcceptsGlyphInfo:
flag
Description forthcoming.
setAllowsDocumentBackgroundColorChange:
flag
Description forthcoming.
setNeedsDisplayInRect:
rect
avoidAdditionalLayout:
flag
Description forthcoming.
setSelectedRange:
charRange
Description forthcoming.
setSelectedRange:
charRange
affinity:
affinity
stillSelecting:
stillSelectingFlag
Description forthcoming.
setSelectedRanges:
ranges
Description forthcoming.
setSelectedRanges:
ranges
affinity:
affinity
stillSelecting:
flag
Description forthcoming.
setSelectionGranularity:
granularity
Description forthcoming.
setTypingAttributes:
attrs
Description forthcoming.
shouldDrawInsertionPoint
Description forthcoming.
smartDeleteRangeForProposedRange:
proposedCharRange
Description forthcoming.
smartInsertAfterStringForString:
aString
replacingRange:
charRange
Description forthcoming.
smartInsertBeforeStringForString:
aString
replacingRange:
charRange
Description forthcoming.
smartInsertForString:
aString
replacingRange:
charRange
beforeString:
beforeString
afterString:
afterString
Description forthcoming.
spellCheckerDocumentTag
Description forthcoming.
startSpeaking:
sender
Description forthcoming.
stopSpeaking:
sender
Description forthcoming.
toggleSmartInsertDelete:
sender
Description forthcoming.
typingAttributes
TODO: categorize
updateDragTypeRegistration
Description forthcoming.
updateFontPanel
Description forthcoming.
updateInsertionPointStateAndRestartTimer:
restartFlag
Description forthcoming.
updateRuler
Description forthcoming.
validRequestorForSendType:
sendType
returnType:
returnType
Description forthcoming.
writablePasteboardTypes
Description forthcoming.
writeSelectionToPasteboard:
pboard
type:
type
Description forthcoming.
writeSelectionToPasteboard:
pboard
types:
types
Description forthcoming.
Software documentation for the NSTextViewDelegate protocol
AppKit/NSTextView.h
NSObject
Description forthcoming.