<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBrowser/isLeafItem(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBrowser(im)isLeafItem:"
  },
  "title" : "isLeafItem(_:)"
}
-->

# isLeafItem(_:)

Returns whether the specified item is a leaf item.

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

## Parameters

`item`

The item to be checked.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the item is a leaf item; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method may return <doc://com.apple.documentation/documentation/Swift/false> if the item has never been displayed in the browser or accessed via [`item(at:)`](/documentation/AppKit/NSBrowser/item(at:)). Overriding this method has no effect. It may be used only if the browser’s delegate implements the item data source methods.

---

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)