Returns a list of rectangles indicating the newly exposed areas of the view.
SDK
- macOS 10.4+
Framework
- App
Kit
Declaration
Parameters
exposedRects
On return, contains the list of rectangles. The returned rectangles are in the coordinate space of the view.
count
Contains the number of rectangles in
exposed
; this value may be 0 and is guaranteed to be no more than 4.Rects
Discussion
If your view does not support content preservation during live resizing, the entire area of your view is returned in the exposed
parameter. To support content preservation, override the preserves
property in your view and have your implementation return YES
.
Note
The window containing your view must also support content preservation. To enable support for this feature in your window, use the preserves
method of NSWindow
.
If the view decreased in both height and width, the list of returned rectangles will be empty. If the view increased in both height and width and its upper-left corner stayed anchored in the same position, the list of returned rectangles will contain a vertical and horizontal component indicating the exposed area.