Up
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
)
-
- Pierre-Yves Rivaille (
pyrivail@ens-lyon.fr
)
-
Copyright: (C)
1996, 1998, 2000, 2001, 2002, 2003 Free Software
Foundation, Inc.
- Declared in:
- AppKit/NSTextView.h
- Conforms to:
- NSTextInput
Standards:
Description forthcoming.
Instance Variables for NSTextView Class
@private NSColor* _backgroundColor;
Description forthcoming.
@private int _currentInsertionPointMovementDirection;
Description forthcoming.
@private id _delegate;
Description forthcoming.
@private BOOL _drawInsertionPointNow;
Description forthcoming.
@private NSColor* _insertionPointColor;
Description forthcoming.
@private NSRect _insertionPointRect;
Description forthcoming.
@private NSTimer* _insertionPointTimer;
Description forthcoming.
@private NSLayoutManager* _layoutManager;
Description forthcoming.
@private NSDictionary* _markedTextAttributes;
Description forthcoming.
@private NSSize _maxSize;
Description forthcoming.
@private NSSize _minSize;
Description forthcoming.
@private NSTextView* _notifObject;
Description forthcoming.
@private unsigned int _originalInsertionPointCharacterIndex;
Description forthcoming.
@private NSDictionary* _selectedTextAttributes;
Description forthcoming.
@private int _spellCheckerDocumentTag;
Description forthcoming.
@private NSTextContainer* _textContainer;
Description forthcoming.
@private NSSize _textContainerInset;
Description forthcoming.
@private NSPoint _textContainerOrigin;
Description forthcoming.
@private NSTextStorage* _textStorage;
Description forthcoming.
@private struct GSTextViewFlagsType _tf;
Description forthcoming.
Method summary
+ (NSDictionary*) 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.
+ (void) registerForServices;
Description forthcoming.
- (void) _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.
- (void) _updateInputMethodWithInsertionPoint: (NSPoint)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.
- (BOOL) allowsUndo;
Description forthcoming.
- (void) didChangeText;
Description forthcoming.
- (id) initWithFrame: (NSRect)frameRect;
Description forthcoming.
- (id) initWithFrame: (NSRect)frameRect textContainer: (NSTextContainer*)container;
Description forthcoming.
- (NSColor*) insertionPointColor;
Description forthcoming.
- (void) invalidateTextContainerOrigin;
Description forthcoming.
- (BOOL) isContinuousSpellCheckingEnabled;
Description forthcoming.
- (NSLayoutManager*) layoutManager;
Description forthcoming.
- (NSDictionary*) markedTextAttributes;
Description forthcoming.
- (void) pasteAsPlainText: (id)sender;
Description forthcoming.
- (void) pasteAsRichText: (id)sender;
Description forthcoming.
- (NSRange) rangeForUserCharacterAttributeChange;
Description forthcoming.
- (NSRange) rangeForUserParagraphAttributeChange;
Description forthcoming.
- (NSRange) rangeForUserTextChange;
Description forthcoming.
- (void) replaceCharactersInRange: (NSRange)aRange withAttributedString: (NSAttributedString*)aString;
Description forthcoming.
- (void) replaceCharactersInRange: (NSRange)aRange withString: (NSString*)aString;
Description forthcoming.
- (void) replaceTextContainer: (NSTextContainer*)newContainer;
Description forthcoming.
- (NSDictionary*) selectedTextAttributes;
Description forthcoming.
- (void) setAlignment: (NSTextAlignment)alignment range: (NSRange)range;
Description forthcoming.
- (void) setAllowsUndo: (BOOL)flag;
Description forthcoming.
- (void) setConstrainedFrameSize: (NSSize)desiredSize;
Description forthcoming.
- (void) setContinuousSpellCheckingEnabled: (BOOL)flag;
Description forthcoming.
- (void) setInsertionPointColor: (NSColor*)color;
Description forthcoming.
- (void) setMarkedTextAttributes: (NSDictionary*)attributeDictionary;
Description forthcoming.
- (void) setRulerVisible: (BOOL)flag;
Description forthcoming.
- (void) setSelectedTextAttributes: (NSDictionary*)attributeDictionary;
Description forthcoming.
- (void) setSmartInsertDeleteEnabled: (BOOL)flag;
Description forthcoming.
- (void) setTextContainer: (NSTextContainer*)container;
Description forthcoming.
- (void) setTextContainerInset: (NSSize)inset;
Description forthcoming.
- (void) setUsesRuler: (BOOL)flag;
Description forthcoming.
- (BOOL) shouldChangeTextInRange: (NSRange)affectedCharRange replacementString: (NSString*)replacementString;
Description forthcoming.
- (BOOL) smartInsertDeleteEnabled;
Description forthcoming.
- (NSTextContainer*) textContainer;
Description forthcoming.
- (NSSize) textContainerInset;
Description forthcoming.
- (NSPoint) textContainerOrigin;
Description forthcoming.
- (NSTextStorage*) textStorage;
Description forthcoming.
- (BOOL) usesRuler;
Description forthcoming.
- Declared in:
- AppKit/NSTextView.h
Standards:
- MacOS-X
- NotOpenStep
- GNUstep
Description forthcoming.
Method summary
- (void) textView: (NSTextView*)textView clickedOnCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)cellFrame;
Description forthcoming.
- (void) textView: (NSTextView*)textView clickedOnCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)cellFrame atIndex: (unsigned)charIndex;
Description forthcoming.
- (BOOL) textView: (NSTextView*)textView clickedOnLink: (id)link;
Description forthcoming.
- (BOOL) textView: (NSTextView*)textView clickedOnLink: (id)link atIndex: (unsigned)charIndex;
Description forthcoming.
- (BOOL) textView: (NSTextView*)textView doCommandBySelector: (SEL)commandSelector;
Description forthcoming.
- (void) textView: (NSTextView*)textView doubleClickedOnCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)cellFrame;
Description forthcoming.
- (void) textView: (NSTextView*)textView doubleClickedOnCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)cellFrame atIndex: (unsigned)charIndex;
Description forthcoming.
- (void) textView: (NSTextView*)view draggedCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)rect event: (NSEvent*)event;
Description forthcoming.
- (void) textView: (NSTextView*)view draggedCell: (id<NSTextAttachmentCell>)cell inRect: (NSRect)rect event: (NSEvent*)event atIndex: (unsigned)charIndex;
Description forthcoming.
- (BOOL) textView: (NSTextView*)textView shouldChangeTextInRange: (NSRange)affectedCharRange replacementString: (NSString*)replacementString;
Description forthcoming.
- (NSRange) textView: (NSTextView*)textView willChangeSelectionFromCharacterRange: (NSRange)oldSelectedCharRange toCharacterRange: (NSRange)newSelectedCharRange;
Description forthcoming.
- (void) textViewDidChangeSelection: (NSNotification*)notification;
Description forthcoming.
- (NSUndoManager*) undoManagerForTextView: (NSTextView*)view;
Description forthcoming.
- Declared in:
- AppKit/NSTextView.h
Standards:
Description forthcoming.
Method summary
- (void) _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.
- (void) _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.
- (void) _syncTextViewsByCalling: (SEL)action withFlag: (BOOL)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.
- (void) _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.
- Declared in:
- AppKit/NSTextView.h
Standards:
Description forthcoming.
Method summary
- (NSArray*) acceptableDragTypes;
Description forthcoming.
- (void) cleanUpAfterDragOperation;
Description forthcoming.
- (NSImage*) dragImageForSelectionWithEvent: (NSEvent*)event origin: (NSPoint*)origin;
Description forthcoming.
- (unsigned int) dragOperationForDraggingInfo: (id)dragInfo type: (NSString*)type;
Description forthcoming.
- (BOOL) dragSelectionWithEvent: (NSEvent*)event offset: (NSSize)mouseOffset slideBack: (BOOL)slideBack;
Description forthcoming.
- (void) drawInsertionPointInRect: (NSRect)rect color: (NSColor*)color turnedOn: (BOOL)flag;
Description forthcoming.
- (NSString*) preferredPasteboardTypeFromArray: (NSArray*)availableTypes restrictedToTypesFromArray: (NSArray*)allowedTypes;
Description forthcoming.
- (BOOL) readSelectionFromPasteboard: (NSPasteboard*)pboard;
Description forthcoming.
- (BOOL) readSelectionFromPasteboard: (NSPasteboard*)pboard type: (NSString*)type;
Description forthcoming.
- (NSArray*) readablePasteboardTypes;
Description forthcoming.
- (void) rulerView: (NSRulerView*)ruler didAddMarker: (NSRulerMarker*)marker;
Description forthcoming.
- (void) rulerView: (NSRulerView*)ruler didMoveMarker: (NSRulerMarker*)marker;
Mote movement of marker
- (void) rulerView: (NSRulerView*)ruler didRemoveMarker: (NSRulerMarker*)marker;
Handle removal of marker.
- (void) rulerView: (NSRulerView*)ruler handleMouseDown: (NSEvent*)event;
Set new marker position from mouse down location.
- (BOOL) rulerView: (NSRulerView*)ruler shouldAddMarker: (NSRulerMarker*)marker;
Return YES
if the marker
should be added, NO
otherwise.
- (BOOL) rulerView: (NSRulerView*)ruler shouldMoveMarker: (NSRulerMarker*)marker;
Return YES
if the marker
should be moved, NO
otherwise.
- (BOOL) rulerView: (NSRulerView*)ruler shouldRemoveMarker: (NSRulerMarker*)marker;
Return YES
if the marker
should be removed, NO
otherwise.
- (float) rulerView: (NSRulerView*)ruler willAddMarker: (NSRulerMarker*)marker atLocation: (float)location;
Return a position for adding by constraining the
specified location.
- (float) rulerView: (NSRulerView*)ruler willMoveMarker: (NSRulerMarker*)marker toLocation: (float)location;
Return a new position by constraining the specified
location.
- (NSRange) selectedRange;
Description forthcoming.
- (NSSelectionAffinity) selectionAffinity;
Description forthcoming.
- (NSSelectionGranularity) selectionGranularity;
Description forthcoming.
- (NSRange) selectionRangeForProposedRange: (NSRange)proposedCharRange granularity: (NSSelectionGranularity)gr;
Return a range of text which encompasses
proposedCharRange but is extended (if
necessary) to match the type of selection
specified by gr.
- (void) setNeedsDisplayInRect: (NSRect)rect avoidAdditionalLayout: (BOOL)flag;
Description forthcoming.
- (void) setSelectedRange: (NSRange)charRange;
Description forthcoming.
- (void) setSelectedRange: (NSRange)charRange affinity: (NSSelectionAffinity)affinity stillSelecting: (BOOL)stillSelectingFlag;
Description forthcoming.
- (void) setSelectionGranularity: (NSSelectionGranularity)granularity;
Description forthcoming.
- (void) setTypingAttributes: (NSDictionary*)attrs;
Description forthcoming.
- (BOOL) shouldDrawInsertionPoint;
Description forthcoming.
- (NSRange) smartDeleteRangeForProposedRange: (NSRange)proposedCharRange;
Description forthcoming.
- (void) smartInsertForString: (NSString*)aString replacingRange: (NSRange)charRange beforeString: (NSString**)beforeString afterString: (NSString**)afterString;
Description forthcoming.
- (int) spellCheckerDocumentTag;
Description forthcoming.
- (NSDictionary*) typingAttributes;
TODO: categorize
- (void) updateDragTypeRegistration;
Description forthcoming.
- (void) updateFontPanel;
Description forthcoming.
- (void) updateInsertionPointStateAndRestartTimer: (BOOL)restartFlag;
Description forthcoming.
- (void) updateRuler;
Description forthcoming.
- (id) validRequestorForSendType: (NSString*)sendType returnType: (NSString*)returnType;
Description forthcoming.
- (NSArray*) writablePasteboardTypes;
Description forthcoming.
- (BOOL) writeSelectionToPasteboard: (NSPasteboard*)pboard type: (NSString*)type;
Description forthcoming.
- (BOOL) writeSelectionToPasteboard: (NSPasteboard*)pboard types: (NSArray*)types;
Description forthcoming.
- Declared in:
- AppKit/NSTextView.h
Standards:
Description forthcoming.
Method summary
- (void) alignJustified: (id)sender;
Description forthcoming.
- (void) loosenKerning: (id)sender;
Description forthcoming.
- (void) lowerBaseline: (id)sender;
Description forthcoming.
- (void) raiseBaseline: (id)sender;
Description forthcoming.
- (void) tightenKerning: (id)sender;
Description forthcoming.
- (void) toggleContinuousSpellChecking: (id)sender;
Description forthcoming.
- (void) toggleTraditionalCharacterShape: (id)sender;
Description forthcoming.
- (void) transpose: (id)sender;
Description forthcoming.
- (void) turnOffKerning: (id)sender;
Description forthcoming.
- (void) turnOffLigatures: (id)sender;
Description forthcoming.
- (void) useAllLigatures: (id)sender;
Description forthcoming.
- (void) useStandardKerning: (id)sender;
Description forthcoming.
- (void) useStandardLigatures: (id)sender;
Description forthcoming.
Up