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

# calcDrawInfo(_:)

Recalculates the cell geometry.

```
func calcDrawInfo(_ rect: NSRect)
```

## Parameters

`rect`

The reference rectangle to use when calculating the cell information.

## Discussion

Objects (such as controls) that manage `NSCell` objects generally maintain a flag that informs them if any of their cells have been modified in such a way that the location or size of the cell should be recomputed. If so, [`calcSize()`](/documentation/AppKit/NSControl/calcSize()) method of `NSControl` is automatically invoked prior to the display of the cell, and that method invokes the [`calcDrawInfo(_:)`](/documentation/AppKit/NSCell/calcDrawInfo(_:)) method of the cell.

The default implementation of this method does nothing.

---

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)