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

# NSBrowserCell

The user interface of a browser.

```
class NSBrowserCell
```

## Overview

The [`NSBrowserCell`](/documentation/AppKit/NSBrowserCell) class is the subclass of [`NSCell`](/documentation/AppKit/NSCell) used by default to display data in the columns of an [`NSBrowser`](/documentation/AppKit/NSBrowser) object. (Each column contains an [`NSMatrix`](/documentation/AppKit/NSMatrix) object filled with [`NSBrowserCell`](/documentation/AppKit/NSBrowserCell) objects.)

## Topics

### Getting Browser Cell Information

[`branchImage`](/documentation/AppKit/NSBrowserCell/branchImage)

Returns the default image for branch cells in a browser.

[`highlightedBranchImage`](/documentation/AppKit/NSBrowserCell/highlightedBranchImage)

Returns the default image for branch browser cells that are highlighted.

### Configuring Browser Cells

[`image`](/documentation/AppKit/NSBrowserCell/image)

The browser cell’s image.

[`alternateImage`](/documentation/AppKit/NSBrowserCell/alternateImage)

The browser cell’s image for the highlighted state.

### Managing Browser Cell State

[`-  reset`](/documentation/AppKit/NSBrowserCell/reset())

Unhighlights the receiver and unsets its state.

[`-  set`](/documentation/AppKit/NSBrowserCell/set())

Highlights the receiver and sets its state.

[`leaf`](/documentation/AppKit/NSBrowserCell/isLeaf)

A Boolean that indicates whether the browser cell is a leaf or a branch cell.

[`loaded`](/documentation/AppKit/NSBrowserCell/isLoaded)

A Boolean that indicates whether the cell is ready to display.

[`-  highlightColorInView:`](/documentation/AppKit/NSBrowserCell/highlightColor(in:))

Returns the highlight color that the receiver wants to display.

### Initializers

[`-  initWithCoder:`](/documentation/AppKit/NSBrowserCell/init(coder:))

[`-  initImageCell:`](/documentation/AppKit/NSBrowserCell/init(imageCell:))

[`-  initTextCell:`](/documentation/AppKit/NSBrowserCell/init(textCell:))

## Relationships

### Conforms To

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`Sendable`](/documentation/Swift/Sendable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol)

[`NSAccessibilityElementProtocol`](/documentation/AppKit/NSAccessibilityElementProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSCell`](/documentation/AppKit/NSCell)

---

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)