---
title: NSTableHeaderCell
framework: appkit
role: symbol
role_heading: Class
path: appkit/nstableheadercell
---

# NSTableHeaderCell

An object that a table header view uses to draw the content of the column headers.

## Declaration

```swift
class NSTableHeaderCell
```

## Overview

Overview Subclasses of the NSTableHeaderCell class can override the drawInterior(withFrame:in:), edit(withFrame:in:editor:delegate:event:), and highlight(_:withFrame:in:) methods to change the way headers appear. This specific subclass is responsible for drawing the sort indicators. See the NSCell class specification for information on overriding these methods. See the NSTableView and NSTableHeaderCell for more information.

## Topics

### Drawing Sorting Indicators

- [drawSortIndicator(withFrame:in:ascending:priority:)](appkit/nstableheadercell/drawsortindicator(withframe:in:ascending:priority:).md)
- [sortIndicatorRect(forBounds:)](appkit/nstableheadercell/sortindicatorrect(forbounds:).md)

## Relationships

### Inherits From

- [NSTextFieldCell](appkit/nstextfieldcell.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSAccessibilityElementProtocol](appkit/nsaccessibilityelementprotocol.md)
- [NSAccessibilityProtocol](appkit/nsaccessibilityprotocol.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Rows and Columns

- [NSTableHeaderView](appkit/nstableheaderview.md)
- [NSTableRowView](appkit/nstablerowview.md)
- [NSTableColumn](appkit/nstablecolumn.md)
- [NSTableViewRowAction](appkit/nstableviewrowaction.md)
- [NSTableColumn.ResizingOptions](appkit/nstablecolumn/resizingoptions.md)
