Tweet

Replying to @Developer122

setNeedsDisplayInRect is nice because views can say just the area that needs an update. For example, when a book title (280 pixels wide) becomes focused, only an 8px wide indicator on the left needs to change. That table row can just
setNeedsDisplayInRect(this->_indicatorRect());

(original)