Contents

browser(_:isLeafItem:)

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

Declaration

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

Parameters

  • browser:

    The browser.

  • item:

    The item to be checked.

Return Value

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

See Also

Accessing Components