---
title: resetCursorRects()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsmatrix/resetcursorrects()
---

# resetCursorRects()

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

## Declaration

```swift
func resetCursorRects()
```

## Discussion

Discussion This method resets the cursor rectangles by sending resetCursorRect(_:in:) to each cell in the receiver. Any cell that has a cursor rectangle to set up should then send addCursorRect(_:cursor:) back to the receiver.

## See Also

### Related Documentation

- [addCursorRect(_:cursor:)](appkit/nsview/addcursorrect(_:cursor:).md)
- [resetCursorRect(_:in:)](appkit/nscell/resetcursorrect(_:in:).md)
