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

# browser(_:isLeafItem:)

Asks the delegate whether the specified item is a leaf item (an item that cannot be expanded).

```
@MainActor optional func browser(_ browser: NSBrowser, isLeafItem item: Any?) -> Bool
```

## Parameters

`browser`

The browser.

`item`

The item to be checked.

## Return Value

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

## Discussion

---

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)