---
title: "cellAttribute(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscell/cellattribute(_:)"
---

# cellAttribute(_:)

Returns the value for the specified cell attribute.

## Declaration

```swift
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

Return Value The value for the cell attribute specified by aParameter.

## See Also

### Managing Cell Attributes

- [setCellAttribute(_:to:)](appkit/nscell/setcellattribute(_:to:).md)
- [type](appkit/nscell/type.md)
- [isEnabled](appkit/nscell/isenabled.md)
- [allowsUndo](appkit/nscell/allowsundo.md)
