---
title: "endEditing(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscell/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:in:editor:delegate:event:) or  select(withFrame:in:editor:delegate:start:length:).

## See Also

### Editing and Selecting Text

- [edit(withFrame:in:editor:delegate:event:)](appkit/nscell/edit(withframe:in:editor:delegate:event:).md)
- [select(withFrame:in:editor:delegate:start:length:)](appkit/nscell/select(withframe:in:editor:delegate:start:length:).md)
- [sendsActionOnEndEditing](appkit/nscell/sendsactiononendediting.md)
- [wantsNotificationForMarkedText](appkit/nscell/wantsnotificationformarkedtext.md)
- [fieldEditor(for:)](appkit/nscell/fieldeditor(for:).md)
- [usesSingleLineMode](appkit/nscell/usessinglelinemode.md)
