<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOutlineViewDelegate/outlineView(_:isGroupItem:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSOutlineViewDelegate(im)outlineView:isGroupItem:"
  },
  "title" : "outlineView(_:isGroupItem:)"
}
-->

# outlineView(_:isGroupItem:)

Returns a Boolean that indicates whether a given row should be drawn in the “group row” style.

```
@MainActor optional func outlineView(_ outlineView: NSOutlineView, isGroupItem item: Any) -> Bool
```

## Parameters

`outlineView`

The outline view that sent the message.

`item`

An item in the outline view.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to indicate a particular row should have the “group row” style drawn for that row, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If the cell in that row is an instance of `NSTextFieldCell` and contains only a string value, the “group row” style attributes are automatically applied for that cell.

---

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)