setNeedsDisplay(_:avoidAdditionalLayout:)
Marks the receiver as requiring display.
Declaration
func setNeedsDisplay(_ rect: NSRect, avoidAdditionalLayout flag: Bool)Parameters
- rect:
The rectangle in which display is required.
- flag:
A value of True 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.
Discussion
NSTextView overrides the NSView setNeedsDisplay(_:) method to invoke this method with a flag argument of false.