Instance Property

preservesContentDuringLiveResize

A Boolean value indicating whether the view optimizes live-resize operations by preserving content that has not moved.

Declaration

@property(readonly) BOOL preservesContentDuringLiveResize;

Discussion

The default value of this property is NO. If your view supports content preservation, override this property and return YES. Content preservation lets your view decide what to redraw during a live resize operation. If your view supports this feature, you should also provide a custom implementation of the setFrameSize: method that invalidates the portions of your view that actually need to be redrawn.

For information on how to implement this feature in your views, see Cocoa Performance Guidelines.

See Also

Managing Live Resize

inLiveResize

A Boolean value indicating whether the view is being rendered as part of a live resizing operation.

- getRectsExposedDuringLiveResize:count:

Returns a list of rectangles indicating the newly exposed areas of the view.

rectPreservedDuringLiveResize

The rectangle identifying the portion of your view that did not change during a live resize operation.

- viewWillStartLiveResize

Informs the view of the start of a live resize—the user has started resizing the view.

- viewDidEndLiveResize

Informs the view of the end of a live resize—the user has finished resizing the view.