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

# intercellSpacing

The horizontal and vertical spacing between cells.

```
var intercellSpacing: NSSize { get set }
```

## Discussion

Changing the value of this property causes the table view to redisplay itself. Negative values aren’t supported. The default spacing varies based on the table’s style.

Table views normally have a 1-pixel separation between consecutively selected rows or columns. An intercell spacing of `(1.0, 1.0)` or greater is required if you want this separation. An intercell spacing of `(0.0, 0.0)` forces no separation between consecutive selections.

---

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)