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

# backgroundColor

The background color of the action button.

```
@NSCopying var backgroundColor: NSColor! { get set }
```

## Discussion

Use this property to specify the background color for your button. If you do not specify a value for this property, AppKit assigns a default color based on the value in the [`style`](/documentation/AppKit/NSTableViewRowAction/style-swift.property) property. Generally, this color is red for destructive actions and blue for nondestructive actions.

---

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)