Draws a colored bordered rectangle.
- macOS 10.0+
The bounding rectangle (in the current coordinate system) in which to draw. Since this function is often used to draw the border of a view, this rectangle will typically be that view’s bounds rectangle. Only those parts of
boundsthat lie within the
clipare actually drawn.
The clipping rectangle to use during drawing.
The sides of the rectangle for which you want to specify custom colors. Each side must have a corresponding entry in the
The colors to draw for each of the edges listed in the
The number of 1.0-unit-wide slices to draw on the specified sides.
The rectangle that lies within the resulting border.
Behaves the same as
NSDraw except it draws its border using colors from the