[Previous] [Up] [Next]

NSTextView

Authors

Richard Frith-Macdonald

Version: $Revision$

Date: $Date$

NSTextView

NSTextView

Declared in: Gui/NSTextView.h

Inherits from: NSText

Conforms to: NSTextInput


Instance Variables

Methods


Class Methods

registerForServices

+ (void) registerForServices;


Instances Methods

acceptableDragTypes

- (NSArray*) acceptableDragTypes;

alignJustified:

- (void) alignJustified: (id)sender;

allowsUndo;

- (BOOL) allowsUndo;;

backgroundColor

- (NSColor*) backgroundColor;

becomeFirstResponder

- (BOOL) becomeFirstResponder;

changeColor:

- (void) changeColor: (id)sender;

cleanUpAfterDragOperation

- (void) cleanUpAfterDragOperation;

clickedOnLink:atIndex:

- (void) clickedOnLink: (id)link atIndex: (unsigned int)charIndex;

delegate

- (id) delegate;

didChangeText

- (void) didChangeText;

dragOperationForDraggingInfo:

- (unsigned int) dragOperationForDraggingInfo: (id<NSDraggingInfo>)dragInfo;

drawInsertionPointInRect:color:turnedOn:

- (void) drawInsertionPointInRect: (NSRect)aRect color: (NSColor *)aColor turnedOn: (BOOL)flag;

drawsBackground

- (BOOL) drawsBackground;

encodeWithCoder:

- (void) encodeWithCoder: (NSCoder*)encoder;

importsGraphics

- (BOOL) importsGraphics;

initWithCoder:

- (id) initWithCoder: (NSCoder*)decoder;

initWithFrame:

- (id) initWithFrame: (NSRect)frameRect;

initWithFrame:textContainer:

- (id) initWithFrame: (NSRect)frameRect textContainer: (NSTextContainer*)aTextContainer;

insertText:

- (void) insertText: (NSString*)aString;

insertionPointColor

- (NSColor*) insertionPointColor;

invalidateTextContainerOrigin

- (void) invalidateTextContainerOrigin;

isEditable

- (BOOL) isEditable;

isFieldEditor

- (BOOL) isFieldEditor;

isRichText

- (BOOL) isRichText;

isRulerVisible

- (BOOL) isRulerVisible;

isSelectable

- (BOOL) isSelectable;

layoutManager

- (NSLayoutManager*) layoutManager;

loosenKerning:

- (void) loosenKerning: (id)sender;

lowerBaseline:

- (void) lowerBaseline: (id)sender;

markedRange

- (NSRange) markedRange;

markedTextAttributes

- (NSDictionary*) markedTextAttributes;

pasteAsPlainText:

- (void) pasteAsPlainText: (id)sender;

pasteAsRichText:

- (void) pasteAsRichText: (id)sender;

preferredPasteboardTypeFromArray:restrictedToTypesFromArray:

- (NSString*) preferredPasteboardTypeFromArray: (NSArray*)availableTypes restrictedToTypesFromArray: (NSArray*)allowedTypes;

raiseBaseline:

- (void) raiseBaseline: (id)sender;

readablePasteboardTypes

- (NSArray*) readablePasteboardTypes;

readSelectionFromPasteboard:

- (BOOL) readSelectionFromPasteboard: (NSPasteboard*)pboard;

readSelectionFromPasteboard:

- (BOOL) readSelectionFromPasteboard: (NSPasteboard*)pboard;

replaceTextContainer:

- (void) replaceTextContainer: (NSTextContainer*)aTextContainer;

resignFirstResponder

- (BOOL) resignFirstResponder;

rulerView:didAddMarker:

- (void) rulerView: (NSRulerView*)aRulerView didAddMarker: (NSRulerMarker*)aMarker;

rulerView:didMoveMarker:

- (void) rulerView: (NSRulerView*)aRulerView didMoveMarker: (NSRulerMarker*)aMarker;

rulerView:didRemoveMarker:

- (void) rulerView: (NSRulerView*)aRulerView didRemoveMarker: (NSRulerMarker*)aMarker;

rulerView:handleMouseDown:

- (void) rulerView: (NSRulerView*)aRulerView handleMouseDown: (NSEvent*)theEvent;

rulerView:shouldAddMarker:

- (BOOL) rulerView: (NSRulerView*)aRulerView shouldAddMarker: (NSRulerMarker*)aMarker;

rulerView:shouldMoveMarker:

- (BOOL) rulerView: (NSRulerView*)aRulerView shouldMoveMarker: (NSRulerMarker*)aMarker;

rulerView:shouldRemoveMarker:

- (BOOL) rulerView: (NSRulerView*)aRulerView shouldRemoveMarker: (NSRulerMarker*)aMarker;

rulerView:willAddMarker:atLocation:

- (float) rulerView: (NSRulerView*)aRulerView willAddMarker: (NSRulerMarker*)aMarker atLocation: (float)location;

rulerView:willMoveMarker:toLocation:

- (float) rulerView: (NSRulerView*)aRulerView willMoveMarker: (NSRulerMarker*)aMarker toLocation: (float)location;

selectedRange

- (NSRange) selectedRange;

selectedTextAttributes

- (NSDictionary*) selectedTextAttributes;

selectionAffinity

- (NSSelectionAffinity) selectionAffinity;

selectionGranularity

- (NSSelectionGranularity) selectionGranularity;

selectionRangeForProposedRange:

- (NSRange) selectionRangeForProposedRange: (NSRange)proposedSelRange;

setAllowsUndo:

- (void) setAllowsUndo: (BOOL)flag;

setAlignment:

- (void) setAlignment: (NSTextAlignment)alignment;

setBackgroundColor:

- (void) setBackgroundColor: (NSColor*)aColor;

setConstrainedFrameSize:

- (void) setConstrainedFrameSize: (NSSize)desiredSize;

setDelegate:

- (void) setDelegate: (id)anObject;

setDrawsBackground:

- (void) setDrawsBackground: (BOOL)flag;

setEditable:

- (void) setEditable: (BOOL)flag;

setFieldEditor:

- (void) setFieldEditor: (BOOL)flag;

setImportsGraphics:

- (void) setImportsGraphics: (BOOL)flag;

setInsertionPointColor:

- (void) setInsertionPointColor: (NSColor*)aColor;

setMarkedTextAttributes:

- (void) setMarkedTextAttributes: (NSDictionary*)attributes;

setNeedsDisplayInRect:avoidAdditionalLayout:

- (void) setNeedsDisplayInRect: (NSRect)aRect avoidAdditionalLayout: (BOOL)flag;

setRichText:

- (void) setRichText: (BOOL)flag;

setRulerVisible:

- (void) setRulerVisible: (BOOL)flag;

setSelectable:

- (void) setSelectable: (BOOL)flag;

setSelectedRange:

- (void) setSelectedRange: (NSRange)charRange;

setSelectedRange:affinity:stillSelecting:

- (void) setSelectedRange: (NSRange)charRange affinity: (NSSelectionAffinity)affinity stillSelecting: (BOOL)flag;

setSelectedTextAttributes:

- (void) setSelectedTextAttributes: (NSDictionary*)attributes;

setSelectionGranularity:

- (void) setSelectionGranularity: (NSSelectionGranularity)granularity;

setSmartInsertDeleteEnabled:

- (void) setSmartInsertDeleteEnabled: (BOOL)flag;

setTextContainerInset:

- (void) setTextContainerInset: (NSSize)inset;

setTypingAttributes:

- (void) setTypingAttributes: (NSDictionary*)attributes;

setUsesFontPanel:

- (void) setUsesFontPanel: (BOOL)flag;

setUsesRuler:

- (void) setUsesRuler: (BOOL)flag;

shouldChangeTextInRange:

- (BOOL) shouldChangeTextInRange: (NSRange)affectedCharRange;

shouldDrawInsertionPoint

- (BOOL) shouldDrawInsertionPoint;

smartDeleteRangeForProposedRange:

- (NSRange) smartDeleteRangeForProposedRange: (NSRange)proposedCharRange;

smartInsertAfterStringForString:replacingRange:

- (NSString*) smartInsertAfterStringForString: (NSString*)aString replacingRange: (NSRange)charRange;

smartInsertBeforeStringForString:replacingRange:

- (NSString*) smartInsertBeforeStringForString: (NSString*)aString replacingRange: (NSRange)charRange;

spellCheckerDocumentTag

- (int) spellCheckerDocumentTag;

textContainer

- (NSTextContainer*) textContainer;

textContainerInset

- (NSSize) textContainerInset;

textContainerOrigin

- (NSPoint) textContainerOrigin;

textStorage

- (NSTextStorage*) textStorage;

tightenKerning:

- (void) tightenKerning: (id)sender;

turnOffKerning:

- (void) turnOffKerning: (id)sender;

turnOffLigatures:

- (void) turnOffLigatures: (id)sender;

typingAttributes

- (NSDictionary*) typingAttributes;

updateDragTypeRegistration

- (void) updateDragTypeRegistration;

updateFontPanel

- (void) updateFontPanel;

updateInsertionPointStateAndRestartTimer:

- (void) updateInsertionPointStateAndRestartTimer: (BOOL)flag;

updateRuler

- (void) updateRuler;

useAllLigatures:

- (void) useAllLigatures: (id)sender;

usesFontPanel

- (BOOL) usesFontPanel;

usesRuler

- (BOOL) usesRuler;

useStandardKerning:

- (void) useStandardKerning: (id)sender;

useStandardLigatures:

- (void) useStandardLigatures: (id)sender;

validRequestorForSendType:returnType:

- (id) validRequestorForSendType: (NSString*)sendType returnType: (NSString*)returnType;

writablePasteboardTypes

- (NSArray*) writablePasteboardTypes;

writeSelectionToPasteboard:

- (BOOL) writeSelectionToPasteboard: (NSPasteboard*)pboard;

writeSelectionToPasteboard:

- (BOOL) writeSelectionToPasteboard: (NSPasteboard*)pboard;

textView:clickedOnCell:

- (void) textView: (NSTextView*)aTextView clickedOnCell: (id<NSTextAttachmentCell>)attachmentCell;

textView:clickedOnCell:inRect:

- (void) textView: (NSTextView*)textView clickedOnCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)cellFrame;

textView:clickedOnLink:

- (BOOL) textView: (NSTextView*)textView clickedOnLink: (id)link;

textView:clickedOnLink:atIndex:

- (BOOL) textView: (NSTextView*)textView clickedOnLink: (id)link atIndex: (unsigned int)charIndex;

textView:doCommandBySelector:

- (BOOL) textView: (NSTextView*)aTextView doCommandBySelector: (SEL)aSelector;

textView:doubleClickedOnCell:

- (void) textView: (NSTextView*)aTextView doubleClickedOnCell: (id<NSTextAttachmentCell>)attachmentCell;

textView:doubleClickedOnCell:inRect:

- (void) textView: (NSTextView*)textView doubleClickedOnCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)cellFrame;

textView:draggedCell:inRect:event:

- (void) textView: (NSTextView*)aTextView draggedCell: (id<NSTextAttachmentCell>)attachmentCell inRect: (NSRect)aRect event: (NSEvent*)theEvent;

textView:draggedCell:inRect:event:atIndex:

- (void) textView: (NSTextView*)view draggedCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)rect event: (NSEvent*)event atIndex: (unsigned int)charIndex;

textView:shouldChangeTextInRange:

- (BOOL) textView: (NSTextView*)aTextView shouldChangeTextInRange: (NSRange)affectedCharRange;

textView:willChangeSelectionFromCharacterRange:

- (NSRange) textView: (NSTextView*)aTextView willChangeSelectionFromCharacterRange: (NSRange)oldSelectedCharRange;

textViewDidChangeSelection:

- (void) textViewDidChangeSelection: (NSNotification*)aNotification;

undoManagerForTextView:

- (NSUndoManager*) undoManagerForTextView: (NSTextView*)view;