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

# editItem(at:with:select:)

Begins editing the item at the specified path.

```
func editItem(at indexPath: IndexPath, with event: NSEvent?, select: Bool)
```

## Parameters

`indexPath`

The path of the item.

`event`

The event to use when beginning the edit.

`select`

If <doc://com.apple.documentation/documentation/Swift/true>, the cells contents will be selected; if <doc://com.apple.documentation/documentation/Swift/false>, they will not be selected.

## 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)