---
title: NSTableView.Style.automatic
framework: appkit
role: symbol
role_heading: Case
path: appkit/nstableview/style-swift.enum/automatic
---

# NSTableView.Style.automatic

The system resolves the table view style based on the table view hierarchy.

## Declaration

```swift
case automatic
```

## Discussion

Discussion The system resolves the table view style in the following manner: If the table view is in a sidebar split-view controller item, effectiveStyle resolves to NSTableView.Style.sourceList. If the table’s scroll view has a border, effectiveStyle resolves to NSTableView.Style.fullWidth. Otherwise, effectiveStyle resolves to NSTableView.Style.inset. However, if the table needs extra space to fit its column cells, effectiveStyle resolves to NSTableView.Style.fullWidth. note: For backward compatibility reasons, when selectionHighlightStyle is NSTableView.SelectionHighlightStyle.sourceList, style also resolves to NSTableView.Style.sourceList.

## See Also

### Table Styles

- [NSTableView.Style.fullWidth](appkit/nstableview/style-swift.enum/fullwidth.md)
- [NSTableView.Style.inset](appkit/nstableview/style-swift.enum/inset.md)
- [NSTableView.Style.sourceList](appkit/nstableview/style-swift.enum/sourcelist.md)
- [NSTableView.Style.plain](appkit/nstableview/style-swift.enum/plain.md)
