---
title: "isLeafItem(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/isleafitem(_:)"
---

# isLeafItem(_:)

Returns whether the specified item is a leaf item.

## Declaration

```swift
func isLeafItem(_ item: Any?) -> Bool
```

## Parameters

- `item`: The item to be checked.

## Return Value

Return Value true if the item is a leaf item; otherwise, false.

## Discussion

Discussion This method may return false if the item has never been displayed in the browser or accessed via item(at:). Overriding this method has no effect. It may be used only if the browser’s delegate implements the item data source methods.

## See Also

### Accessing Components

- [loadedCell(atRow:column:)](appkit/nsbrowser/loadedcell(atrow:column:).md)
- [editItem(at:with:select:)](appkit/nsbrowser/edititem(at:with:select:).md)
- [item(at:)](appkit/nsbrowser/item(at:).md)
- [item(atRow:inColumn:)](appkit/nsbrowser/item(atrow:incolumn:).md)
- [indexPath(forColumn:)](appkit/nsbrowser/indexpath(forcolumn:).md)
- [parentForItems(inColumn:)](appkit/nsbrowser/parentforitems(incolumn:).md)
