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

# invalidateIntrinsicContentSize(for:)

Notifies the control that the intrinsic content size for its cell is no longer valid.

```
func invalidateIntrinsicContentSize(for cell: NSCell)
```

## Parameters

`cell`

The cell whose intrinsic content size has changed.

## Discussion

Controls determine their intrinsic content size based on the cell size for a given bounds returned by their cell. When the content of the cell changes in a way that would change the return value of [`cellSize(forBounds:)`](/documentation/AppKit/NSCell/cellSize(forBounds:)), the cell needs to call this method to notify its control that its intrinsic size is no longer valid.

---

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)