---
title: "editItem(at:with:select:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/edititem(at:with:select:)"
---

# editItem(at:with:select:)

Begins editing the item at the specified path.

## Declaration

```swift
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.

## See Also

### Accessing Components

- [loadedCell(atRow:column:)](appkit/nsbrowser/loadedcell(atrow:column:).md)
- [item(at:)](appkit/nsbrowser/item(at:).md)
- [item(atRow:inColumn:)](appkit/nsbrowser/item(atrow:incolumn:).md)
- [indexPath(forColumn:)](appkit/nsbrowser/indexpath(forcolumn:).md)
- [isLeafItem(_:)](appkit/nsbrowser/isleafitem(_:).md)
- [parentForItems(inColumn:)](appkit/nsbrowser/parentforitems(incolumn:).md)
