Up

NSTextView

Authors

Scott Christley( scottc@net-community.com )
Felipe A. Rodriguez( far@ix.netcom.com )
Daniel Bðhringer( boehring@biomed.ruhr-uni-bochum.de )
Fred Kiefer( FredKiefer@gmx.de )
Nicola Pero( n.pero@mi.flashnet.it )

Copyright: (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.


Contents -

  1. Software documentation for the NSTextView class
  2. Software documentation for the NSObject(NSTextViewDelegate) informal protocol
  3. Software documentation for the NSTextView(GSTextViewUpdateMultipleViews) category

Software documentation for the NSTextView class

NSTextView : NSText

Declared in:
AppKit/NSTextView.h
Conforms to:
NSTextInput
Standards:

Description forthcoming.

Method summary

registerForServices

+ (void) registerForServices;

Description forthcoming.


acceptableDragTypes

- (NSArray*) acceptableDragTypes;

Description forthcoming.


alignJustified:

- (void) alignJustified: (id)sender;

Description forthcoming.


allowsUndo

- (BOOL) allowsUndo;

Description forthcoming.


becomeFirstResponder

- (BOOL) becomeFirstResponder;

Description forthcoming.


changeColor:

- (void) changeColor: (id)sender;

Description forthcoming.


cleanUpAfterDragOperation

- (void) cleanUpAfterDragOperation;

Description forthcoming.


didChangeText

- (void) didChangeText;

Description forthcoming.


dragImageForSelectionWithEvent:origin:

- (NSImage*) dragImageForSelectionWithEvent: (NSEvent*)event origin: (NSPoint*)origin;

Description forthcoming.


dragOperationForDraggingInfo:type:

- (unsigned int) dragOperationForDraggingInfo: (id)dragInfo type: (NSString*)type;

Description forthcoming.


dragSelectionWithEvent:offset:slideBack:

- (BOOL) dragSelectionWithEvent: (NSEvent*)event offset: (NSSize)mouseOffset slideBack: (BOOL)slideBack;

Description forthcoming.


drawInsertionPointInRect:color:turnedOn:

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

Description forthcoming.


initWithFrame:

- (id) initWithFrame: (NSRect)frameRect;

Description forthcoming.


initWithFrame:textContainer:

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

Description forthcoming.


insertText:

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

Description forthcoming.


insertionPointColor

- (NSColor*) insertionPointColor;

Description forthcoming.


invalidateTextContainerOrigin

- (void) invalidateTextContainerOrigin;

Description forthcoming.


isContinuousSpellCheckingEnabled

- (BOOL) isContinuousSpellCheckingEnabled;

Description forthcoming.


layoutManager

- (NSLayoutManager*) layoutManager;

Description forthcoming.


loosenKerning:

- (void) loosenKerning: (id)sender;

Description forthcoming.


lowerBaseline:

- (void) lowerBaseline: (id)sender;

Description forthcoming.


markedRange

- (NSRange) markedRange;

Description forthcoming.


markedTextAttributes

- (NSDictionary*) markedTextAttributes;

Description forthcoming.


pasteAsPlainText:

- (void) pasteAsPlainText: (id)sender;

Description forthcoming.


pasteAsRichText:

- (void) pasteAsRichText: (id)sender;

Description forthcoming.


preferredPasteboardTypeFromArray:restrictedToTypesFromArray:

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

Description forthcoming.


raiseBaseline:

- (void) raiseBaseline: (id)sender;

Description forthcoming.


rangeForUserCharacterAttributeChange

- (NSRange) rangeForUserCharacterAttributeChange;

Description forthcoming.


rangeForUserParagraphAttributeChange

- (NSRange) rangeForUserParagraphAttributeChange;

Description forthcoming.


rangeForUserTextChange

- (NSRange) rangeForUserTextChange;

Description forthcoming.


readSelectionFromPasteboard:

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

Description forthcoming.


readSelectionFromPasteboard:type:

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

Description forthcoming.


readablePasteboardTypes

- (NSArray*) readablePasteboardTypes;

Description forthcoming.


replaceTextContainer:

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

Description forthcoming.


resignFirstResponder

- (BOOL) resignFirstResponder;

Description forthcoming.


rulerView:didAddMarker:

- (void) rulerView: (NSRulerView*)ruler didAddMarker: (NSRulerMarker*)marker;

Description forthcoming.


rulerView:didMoveMarker:

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

Description forthcoming.


rulerView:didRemoveMarker:

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

Description forthcoming.


rulerView:handleMouseDown:

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

Description forthcoming.


rulerView:shouldAddMarker:

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

Description forthcoming.


rulerView:shouldMoveMarker:

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

Description forthcoming.


rulerView:shouldRemoveMarker:

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

Description forthcoming.


rulerView:willAddMarker:atLocation:

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

Description forthcoming.


rulerView:willMoveMarker:toLocation:

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

Description forthcoming.


selectedRange

- (NSRange) selectedRange;

Description forthcoming.


selectedTextAttributes

- (NSDictionary*) selectedTextAttributes;

Description forthcoming.


selectionAffinity

- (NSSelectionAffinity) selectionAffinity;

Description forthcoming.


selectionGranularity

- (NSSelectionGranularity) selectionGranularity;

Description forthcoming.


selectionRangeForProposedRange:granularity:

- (NSRange) selectionRangeForProposedRange: (NSRange)proposedCharRange granularity: (NSSelectionGranularity)granul;

Description forthcoming.


setAlignment:range:

- (void) setAlignment: (NSTextAlignment)alignment range: (NSRange)aRange;

Description forthcoming.


setAllowsUndo:

- (void) setAllowsUndo: (BOOL)flag;

Description forthcoming.


setConstrainedFrameSize:

- (void) setConstrainedFrameSize: (NSSize)desiredSize;

Description forthcoming.


setContinuousSpellCheckingEnabled:

- (void) setContinuousSpellCheckingEnabled: (BOOL)flag;

Description forthcoming.


setInsertionPointColor:

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

Description forthcoming.


setMarkedTextAttributes:

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

Description forthcoming.


setNeedsDisplayInRect:avoidAdditionalLayout:

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

Description forthcoming.


setRulerVisible:

- (void) setRulerVisible: (BOOL)flag;

Description forthcoming.


setSelectedRange:

- (void) setSelectedRange: (NSRange)range;

Description forthcoming.


setSelectedRange:affinity:stillSelecting:

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

Description forthcoming.


setSelectedTextAttributes:

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

Description forthcoming.


setSelectionGranularity:

- (void) setSelectionGranularity: (NSSelectionGranularity)granularity;

Description forthcoming.


setSmartInsertDeleteEnabled:

- (void) setSmartInsertDeleteEnabled: (BOOL)flag;

Description forthcoming.


setTextContainer:

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

Description forthcoming.


setTextContainerInset:

- (void) setTextContainerInset: (NSSize)inset;

Description forthcoming.


setTypingAttributes:

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

Description forthcoming.


setUsesRuler:

- (void) setUsesRuler: (BOOL)flag;

Description forthcoming.


shouldChangeTextInRange:replacementString:

- (BOOL) shouldChangeTextInRange: (NSRange)affectedCharRange replacementString: (NSString*)replacementString;

Description forthcoming.


shouldDrawInsertionPoint

- (BOOL) shouldDrawInsertionPoint;

Description forthcoming.


smartDeleteRangeForProposedRange:

- (NSRange) smartDeleteRangeForProposedRange: (NSRange)proposedCharRange;

Description forthcoming.


smartInsertDeleteEnabled

- (BOOL) smartInsertDeleteEnabled;

Description forthcoming.


smartInsertForString:replacingRange:beforeString:afterString:

- (void) smartInsertForString: (NSString*)aString replacingRange: (NSRange)charRange beforeString: (NSString**)beforeString afterString: (NSString**)afterString;

Description forthcoming.


spellCheckerDocumentTag

- (int) spellCheckerDocumentTag;

Description forthcoming.


textContainer

- (NSTextContainer*) textContainer;

Description forthcoming.


textContainerInset

- (NSSize) textContainerInset;

Description forthcoming.


textContainerOrigin

- (NSPoint) textContainerOrigin;

Description forthcoming.


textStorage

- (NSTextStorage*) textStorage;

Description forthcoming.


tightenKerning:

- (void) tightenKerning: (id)sender;

Description forthcoming.


toggleContinuousSpellChecking:

- (void) toggleContinuousSpellChecking: (id)sender;

Description forthcoming.


toggleTraditionalCharacterShape:

- (void) toggleTraditionalCharacterShape: (id)sender;

Description forthcoming.


transpose:

- (void) transpose: (id)sender;

Description forthcoming.


turnOffKerning:

- (void) turnOffKerning: (id)sender;

Description forthcoming.


turnOffLigatures:

- (void) turnOffLigatures: (id)sender;

Description forthcoming.


typingAttributes

- (NSDictionary*) typingAttributes;

Description forthcoming.


updateDragTypeRegistration

- (void) updateDragTypeRegistration;

Description forthcoming.


updateFontPanel

- (void) updateFontPanel;

Description forthcoming.


updateInsertionPointStateAndRestartTimer:

- (void) updateInsertionPointStateAndRestartTimer: (BOOL)flag;

Description forthcoming.


updateRuler

- (void) updateRuler;

Description forthcoming.


useAllLigatures:

- (void) useAllLigatures: (id)sender;

Description forthcoming.


useStandardKerning:

- (void) useStandardKerning: (id)sender;

Description forthcoming.


useStandardLigatures:

- (void) useStandardLigatures: (id)sender;

Description forthcoming.


usesRuler

- (BOOL) usesRuler;

Description forthcoming.


validRequestorForSendType:returnType:

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

Description forthcoming.


writablePasteboardTypes

- (NSArray*) writablePasteboardTypes;

Description forthcoming.


writeSelectionToPasteboard:type:

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

Description forthcoming.


writeSelectionToPasteboard:types:

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

Description forthcoming.


Software documentation for the NSObject(NSTextViewDelegate) informal protocol

NSObject(NSTextViewDelegate)

Declared in:
AppKit/NSTextView.h
Standards:

Description forthcoming.

Method summary

textView:clickedOnCell:inRect:

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

Description forthcoming.


textView:clickedOnCell:inRect:atIndex:

- (void) textView: (NSTextView*)textView clickedOnCell: (id)cell inRect: (NSRect)cellFrame atIndex: (unsigned)charIndex;

Description forthcoming.


textView:clickedOnLink:

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

Description forthcoming.


textView:clickedOnLink:atIndex:

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

Description forthcoming.


textView:doCommandBySelector:

- (BOOL) textView: (NSTextView*)textView doCommandBySelector: (SEL)commandSelector;

Description forthcoming.


textView:doubleClickedOnCell:inRect:

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

Description forthcoming.


textView:doubleClickedOnCell:inRect:atIndex:

- (void) textView: (NSTextView*)textView doubleClickedOnCell: (id)cell inRect: (NSRect)cellFrame atIndex: (unsigned)charIndex;

Description forthcoming.


textView:draggedCell:inRect:event:

- (void) textView: (NSTextView*)view draggedCell: (id)cell inRect: (NSRect)rect event: (NSEvent*)event;

Description forthcoming.


textView:draggedCell:inRect:event:atIndex:

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

Description forthcoming.


textView:shouldChangeTextInRange:replacementString:

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

Description forthcoming.


textView:willChangeSelectionFromCharacterRange:toCharacterRange:

- (NSRange) textView: (NSTextView*)textView willChangeSelectionFromCharacterRange: (NSRange)oldSelectedCharRange toCharacterRange: (NSRange)newSelectedCharRange;

Description forthcoming.


textViewDidChangeSelection:

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

Description forthcoming.


undoManagerForTextView:

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

Description forthcoming.


Software documentation for the NSTextView(GSTextViewUpdateMultipleViews) category

NSTextView(GSTextViewUpdateMultipleViews)

Declared in:
AppKit/NSTextView.h
Standards:

Description forthcoming.

Method summary

_updateMultipleTextViews

- (void) _updateMultipleTextViews;

Description forthcoming.



Up