---
title: "focusRingMaskBounds(forFrame:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscell/focusringmaskbounds(forframe:in:)"
---

# focusRingMaskBounds(forFrame:in:)

Returns the bounds of the focus ring mask.

## Declaration

```swift
func focusRingMaskBounds(forFrame cellFrame: NSRect, in controlView: NSView) -> NSRect
```

## Parameters

- `cellFrame`: The bounding rectangle of the receiver, or a portion of the bounding rectangle.
- `controlView`: The view that manages the cell.

## Return Value

Return Value Returns a rectangle encompassing the focus ring bounds in the controlView coordinate space.

## Discussion

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.

## See Also

### Managing Focus Rings

- [drawFocusRingMask(withFrame:in:)](appkit/nscell/drawfocusringmask(withframe:in:).md)
- [defaultFocusRingType](appkit/nscell/defaultfocusringtype.md)
- [focusRingType](appkit/nscell/focusringtype.md)
