---
title: "endEditing(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscontrol/endediting(_:)"
---

# endEditing(_:)

Ends the editing of text in the receiver using the specified field editor.

## Declaration

```swift
func endEditing(_ textObj: NSText)
```

## Parameters

- `textObj`: The field editor currently handling the editing of the cell’s content.

## Discussion

Discussion Ends any editing of text that began with a call to edit(withFrame:editor:delegate:event:) or select(withFrame:editor:delegate:start:length:).

## See Also

### Managing the Field Editor

- [abortEditing()](appkit/nscontrol/abortediting().md)
- [currentEditor()](appkit/nscontrol/currenteditor().md)
- [validateEditing()](appkit/nscontrol/validateediting().md)
- [edit(withFrame:editor:delegate:event:)](appkit/nscontrol/edit(withframe:editor:delegate:event:).md)
- [select(withFrame:editor:delegate:start:length:)](appkit/nscontrol/select(withframe:editor:delegate:start:length:).md)
