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

# isHighlighted

A Boolean value indicating whether the cell has a highlighted appearance.

```
var isHighlighted: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the cell draws itself with a highlighted appearance. The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

Assigning a new value to this property has no effect by default. Subclasses can override the property to provide a highlighting behavior. For example, the [`NSButtonCell`](/documentation/AppKit/NSButtonCell) class overrides this property, so that when the value is <doc://com.apple.documentation/documentation/Swift/true> the button draws the button with a highlight appearance specified by [`NSCell.Attribute.cellLightsByBackground`](/documentation/AppKit/NSCell/Attribute/cellLightsByBackground), [`NSCell.Attribute.cellLightsByContents`](/documentation/AppKit/NSCell/Attribute/cellLightsByContents), or [`NSCell.Attribute.cellLightsByGray`](/documentation/AppKit/NSCell/Attribute/cellLightsByGray).

---

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)