Contents

rectPreservedDuringLiveResize

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

Declaration

var rectPreservedDuringLiveResize: NSRect { get }

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

See Also

Managing Live Resize