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

# integerValue

The cell’s value as an integer value.

```
var integerValue: Int { get set }
```

## Discussion

This property uses the [`objectValue`](/documentation/AppKit/NSCell/objectValue) property to access the actual value. If the cell is not a text-type cell or its contents are not scannable, the value in this property is `0`.

---

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)