---
title: NSCell.Attribute
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nscell/attribute
---

# NSCell.Attribute

Constants for specifying how a button behaves when pressed and how it displays its state.

## Declaration

```swift
enum Attribute
```

## Overview

Overview These constants are used by the NSButton and NSButtonCell classes.

## Topics

### Constants

- [NSCell.Attribute.cellAllowsMixedState](appkit/nscell/attribute/cellallowsmixedstate.md)
- [NSCell.Attribute.changeBackgroundCell](appkit/nscell/attribute/changebackgroundcell.md)
- [NSCell.Attribute.cellChangesContents](appkit/nscell/attribute/cellchangescontents.md)
- [NSCell.Attribute.changeGrayCell](appkit/nscell/attribute/changegraycell.md)
- [NSCell.Attribute.cellDisabled](appkit/nscell/attribute/celldisabled.md)
- [NSCell.Attribute.cellEditable](appkit/nscell/attribute/celleditable.md)
- [NSCell.Attribute.cellHasImageHorizontal](appkit/nscell/attribute/cellhasimagehorizontal.md)
- [NSCell.Attribute.cellHasImageOnLeftOrBottom](appkit/nscell/attribute/cellhasimageonleftorbottom.md)
- [NSCell.Attribute.cellHasOverlappingImage](appkit/nscell/attribute/cellhasoverlappingimage.md)
- [NSCell.Attribute.cellHighlighted](appkit/nscell/attribute/cellhighlighted.md)
- [NSCell.Attribute.cellIsBordered](appkit/nscell/attribute/cellisbordered.md)
- [NSCell.Attribute.cellIsInsetButton](appkit/nscell/attribute/cellisinsetbutton.md)
- [NSCell.Attribute.cellLightsByBackground](appkit/nscell/attribute/celllightsbybackground.md)
- [NSCell.Attribute.cellLightsByContents](appkit/nscell/attribute/celllightsbycontents.md)
- [NSCell.Attribute.cellLightsByGray](appkit/nscell/attribute/celllightsbygray.md)
- [NSCell.Attribute.pushInCell](appkit/nscell/attribute/pushincell.md)
- [NSCell.Attribute.cellState](appkit/nscell/attribute/cellstate.md)

### Initializers

- [init(rawValue:)](appkit/nscell/attribute/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [NSCell.CellType](appkit/nscell/celltype.md)
- [NSControl.ImagePosition](appkit/nscontrol/imageposition.md)
- [NSImageScaling](appkit/nsimagescaling.md)
- [NSCell.StateValue](appkit/nscell/statevalue.md)
- [NSCell.StyleMask](appkit/nscell/stylemask.md)
- [NSControlTint](appkit/nscontroltint.md)
- [NSControl.ControlSize](appkit/nscontrol/controlsize-swift.enum.md)
- [NSCell.HitResult](appkit/nscell/hitresult.md)
- [NSView.BackgroundStyle](appkit/nsview/backgroundstyle.md)
- [Deprecated Scaling Constants](appkit/deprecated-scaling-constants.md)
- [Data Entry Types](appkit/data-entry-types.md)
