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

# cellAttribute(_:)

Returns the value for the specified cell attribute.

```
func cellAttribute(_ parameter: NSCell.Attribute) -> Int
```

## Parameters

`parameter`

The cell attribute whose value you want to get. Attributes include the receiver’s current state and  whether it is disabled, editable, or highlighted.

## Return Value

The value for the cell attribute specified by `aParameter`.

---

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)