<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/resetCursorRect(_:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(im)resetCursorRect:inView:"
  },
  "title" : "resetCursorRect(_:in:)"
}
-->

# resetCursorRect(_:in:)

Sets the receiver to show the I-beam cursor while it tracks the mouse.

```
func resetCursorRect(_ cellFrame: NSRect, in controlView: NSView)
```

## Parameters

`cellFrame`

The rectangle in which to display the I-beam cursor.

`controlView`

The control that manages the cell.

## Discussion

The receiver must be an enabled and selectable (or editable) text-type cell.

This method is invoked by [`resetCursorRects()`](/documentation/AppKit/NSView/resetCursorRects()) and in general you do not need to call this method unless you have a custom `NSView` that uses a cell.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)