Instance Property

rectPreservedDuringLiveResize

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

Declaration

@property(readonly) NSRect rectPreservedDuringLiveResize;

Discussion

The rectangle in this property is in the coordinate system of your view and reflects the space your view previously occupied. This rectangle may be smaller or the same size as your view’s current bounds, depending on whether the view grew or shrunk.

If your view does not support content preservation during live resizing, the rectangle will be empty. To support content preservation, override the preservesContentDuringLiveResize property in your view and have your implementation return YES.

See Also

Managing Live Resize

inLiveResize

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

preservesContentDuringLiveResize

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

- getRectsExposedDuringLiveResize:count:

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

- 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.