Instance Method


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


func setConstrainedFrameSize(_ desiredSize: NSSize)



The new desired size.


This method respects the receiver’s existing minimum and maximum sizes and by whether resizing is permitted.

See Also

Controlling Display

func setNeedsDisplay(NSRect, avoidAdditionalLayout: Bool)

Marks the receiver as requiring display.

var shouldDrawInsertionPoint: Bool

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

func drawBackground(in: NSRect)

Draws the background of the text view.

func cleanUpAfterDragOperation()

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

func showFindIndicator(for: NSRange)

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