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

# type

The type of the cell.

```
var type: NSCell.CellType { get set }
```

## Discussion

When you change the cell type to [`NSCell.CellType.textCellType`](/documentation/AppKit/NSCell/CellType/textCellType), the cell converts gives itself a default title and sets the font to the system font at the default size. When you change the cell type to [`NSCell.CellType.imageCellType`](/documentation/AppKit/NSCell/CellType/imageCellType), the cell type does not change until you assign a new non-`nil` image to it.

For a list of possible cell types, see [`NSCell.CellType`](/documentation/AppKit/NSCell/CellType).

## See Also

[`var image: NSImage?`](/documentation/AppKit/NSCell/image)

The image displayed by the cell, if any.



---

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)