focusRingMaskBounds(forFrame:in:)
Returns the bounds of the focus ring mask.
Declaration
func focusRingMaskBounds(forFrame cellFrame: NSRect, in controlView: NSView) -> NSRectParameters
- cellFrame:
The bounding rectangle of the receiver, or a portion of the bounding rectangle.
- controlView:
The view that manages the cell.
Return Value
Returns a rectangle encompassing the focus ring bounds in the controlView coordinate space.
Discussion
Implemented by NSCell subclasses to allow the cell to provide the rectangular bounds of the focus ring mask for the cell.
The default implementation returns an empty value. Subclasses are expected to implement this method if they intend to draw a focus ring.