Instance Method


Marks the receiver as requiring display.


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



The rectangle in which display is required.


A value of YES causes the receiver to not perform any layout, even if this means that portions of the text view remain empty. Otherwise the receiver performs at least as much layout as needed to display aRect.


NSTextView overrides the NSViewsetNeedsDisplayInRect: method to invoke this method with a flag argument of NO.

See Also

Controlling Display


A Boolean value that determines whether the receiver should draw its insertion point.

- drawInsertionPointInRect:color:turnedOn:

Draws or erases the insertion point.

- drawViewBackgroundInRect:

Draws the background of the text view.

- setConstrainedFrameSize:

Attempts to set the frame size as if by user action.

- cleanUpAfterDragOperation

Releases the drag information still existing after the dragging session has completed.

- showFindIndicatorForRange:

Causes a temporary highlighting effect to appear around the visible portion (or portions) of the specified range.