NSTextView Class Reference
PDF
Class at a Glance
Overview
About Delegate Methods
Adopted Protocols
Tasks
Initializing
Registering Services Information
Accessing Text System Objects
Setting Graphics Attributes
Controlling Display
Inserting Text
Setting Behavioral Attributes
Using the Ruler
Managing the Selection
Managing the Pasteboard
Setting Text Attributes
Clicking and Pasting
Undo Support
Methods for Subclasses to Use or Override
Working With the Spelling Checker
NSRulerView Client Methods
Assigning a Delegate
Dragging
Speaking Text
Working with Panels
Text Completion
Performing Commands
Deprecated Methods
Class Methods
registerForServices
Instance Methods
acceptableDragTypes
acceptsGlyphInfo
alignJustified:
allowedInputSourceLocales
allowsDocumentBackgroundColorChange
allowsImageEditing
allowsUndo
backgroundColor
breakUndoCoalescing
changeAttributes:
changeColor:
changeDocumentBackgroundColor:
characterIndexForInsertionAtPoint:
cleanUpAfterDragOperation
clickedOnLink:atIndex:
complete:
completionsForPartialWordRange:indexOfSelectedItem:
defaultParagraphStyle
delegate
didChangeText
displaysLinkToolTips
dragImageForSelectionWithEvent:origin:
dragOperationForDraggingInfo:type:
dragSelectionWithEvent:offset:slideBack:
drawInsertionPointInRect:color:turnedOn:
drawsBackground
drawViewBackgroundInRect:
importsGraphics
initWithFrame:
initWithFrame:textContainer:
insertCompletion:forPartialWordRange:movement:isFinal:
insertionPointColor
insertText:
invalidateTextContainerOrigin
isAutomaticLinkDetectionEnabled
isAutomaticQuoteSubstitutionEnabled
isContinuousSpellCheckingEnabled
isEditable
isFieldEditor
isGrammarCheckingEnabled
isRichText
isRulerVisible
isSelectable
layoutManager
linkTextAttributes
loosenKerning:
lowerBaseline:
markedTextAttributes
orderFrontLinkPanel:
orderFrontListPanel:
orderFrontSpacingPanel:
orderFrontTablePanel:
outline:
pasteAsPlainText:
pasteAsRichText:
performFindPanelAction:
preferredPasteboardTypeFromArray:restrictedToTypesFromArray:
raiseBaseline:
rangeForUserCharacterAttributeChange
rangeForUserCompletion
rangeForUserParagraphAttributeChange
rangeForUserTextChange
rangesForUserCharacterAttributeChange
rangesForUserParagraphAttributeChange
rangesForUserTextChange
readablePasteboardTypes
readSelectionFromPasteboard:
readSelectionFromPasteboard:type:
replaceTextContainer:
rulerView:didAddMarker:
rulerView:didMoveMarker:
rulerView:didRemoveMarker:
rulerView:handleMouseDown:
rulerView:shouldAddMarker:
rulerView:shouldMoveMarker:
rulerView:shouldRemoveMarker:
rulerView:willAddMarker:atLocation:
rulerView:willMoveMarker:toLocation:
selectedRanges
selectedTextAttributes
selectionAffinity
selectionGranularity
selectionRangeForProposedRange:granularity:
setAcceptsGlyphInfo:
setAlignment:range:
setAllowedInputSourceLocales:
setAllowsDocumentBackgroundColorChange:
setAllowsImageEditing:
setAllowsUndo:
setAutomaticLinkDetectionEnabled:
setAutomaticQuoteSubstitutionEnabled:
setBackgroundColor:
setBaseWritingDirection:range:
setConstrainedFrameSize:
setContinuousSpellCheckingEnabled:
setDefaultParagraphStyle:
setDelegate:
setDisplaysLinkToolTips:
setDrawsBackground:
setEditable:
setFieldEditor:
setGrammarCheckingEnabled:
setImportsGraphics:
setInsertionPointColor:
setLinkTextAttributes:
setMarkedTextAttributes:
setNeedsDisplayInRect:avoidAdditionalLayout:
setRichText:
setRulerVisible:
setSelectable:
setSelectedRange:
setSelectedRange:affinity:stillSelecting:
setSelectedRanges:
setSelectedRanges:affinity:stillSelecting:
setSelectedTextAttributes:
setSelectionGranularity:
setSmartInsertDeleteEnabled:
setSpellingState:range:
setTextContainer:
setTextContainerInset:
setTypingAttributes:
setUsesFindPanel:
setUsesFontPanel:
setUsesRuler:
shouldChangeTextInRange:replacementString:
shouldChangeTextInRanges:replacementStrings:
shouldDrawInsertionPoint
showFindIndicatorForRange:
smartDeleteRangeForProposedRange:
smartInsertAfterStringForString:replacingRange:
smartInsertBeforeStringForString:replacingRange:
smartInsertDeleteEnabled
smartInsertForString:replacingRange:beforeString:afterString:
spellCheckerDocumentTag
startSpeaking:
stopSpeaking:
textContainer
textContainerInset
textContainerOrigin
textStorage
tightenKerning:
toggleAutomaticLinkDetection:
toggleAutomaticQuoteSubstitution:
toggleBaseWritingDirection:
toggleContinuousSpellChecking:
toggleGrammarChecking:
toggleSmartInsertDelete:
toggleTraditionalCharacterShape:
turnOffKerning:
turnOffLigatures:
typingAttributes
updateDragTypeRegistration
updateFontPanel
updateInsertionPointStateAndRestartTimer:
updateRuler
useAllLigatures:
usesFindPanel
usesFontPanel
usesRuler
useStandardKerning:
useStandardLigatures:
validRequestorForSendType:returnType:
writablePasteboardTypes
writeSelectionToPasteboard:type:
writeSelectionToPasteboard:types:
Delegate Methods
textView:clickedOnCell:inRect:
textView:clickedOnCell:inRect:atIndex:
textView:clickedOnLink:
textView:clickedOnLink:atIndex:
textView:completions:forPartialWordRange:indexOfSelectedItem:
textView:doCommandBySelector:
textView:doubleClickedOnCell:inRect:
textView:doubleClickedOnCell:inRect:atIndex:
textView:draggedCell:inRect:event:
textView:draggedCell:inRect:event:atIndex:
textView:shouldChangeTextInRange:replacementString:
textView:shouldChangeTextInRanges:replacementStrings:
textView:shouldChangeTypingAttributes:toAttributes:
textView:shouldSetSpellingState:range:
textView:willChangeSelectionFromCharacterRange:toCharacterRange:
textView:willChangeSelectionFromCharacterRanges:toCharacterRanges:
textView:willDisplayToolTip:forCharacterAtIndex:
textView:writablePasteboardTypesForCell:atIndex:
textView:writeCell:atIndex:toPasteboard:type:
textViewDidChangeSelection:
textViewDidChangeTypingAttributes:
undoManagerForTextView:
Constants
NSSelectionGranularity
NSSelectionAffinity
NSFindPanelAction
Input Sources Locale Identifiers
Find Panel Search Metadata
NSFindPanelSubstringMatchType
Notifications
NSTextViewDidChangeSelectionNotification
NSTextViewWillChangeNotifyingTextViewNotification
NSTextViewDidChangeTypingAttributesNotification
Revision History
Index
Companion Guides
Text System Overview
Text System User Interface Layer Programming Guide for Cocoa