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

# resetCursorRects()

Resets cursor rectangles so the cursor becomes an I-beam over text cells.

```
func resetCursorRects()
```

## Discussion

This method resets the cursor rectangles by sending [`resetCursorRect(_:in:)`](/documentation/AppKit/NSCell/resetCursorRect(_:in:)) to each cell in the receiver. Any cell that has a cursor rectangle to set up should then send [`addCursorRect(_:cursor:)`](/documentation/AppKit/NSView/addCursorRect(_:cursor:)) back to the receiver.

## See Also

[`func addCursorRect(NSRect, cursor: NSCursor)`](/documentation/AppKit/NSView/addCursorRect(_:cursor:))

Establishes  the cursor to be used when the mouse pointer lies within a specified region.

[`func resetCursorRect(NSRect, in: NSView)`](/documentation/AppKit/NSCell/resetCursorRect(_:in:))

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



---

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)