---
title: "textDidEndEditing(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/textdidendediting(_:)"
---

# textDidEndEditing(_:)

Invoked when text editing ends.

## Declaration

```swift
func textDidEndEditing(_ notification: Notification)
```

## Parameters

- `notification`: The doc://com.apple.appkit/documentation/AppKit/NSControl/textDidEndEditingNotification notification.

## Discussion

Discussion This method’s default behavior is to post an textDidEndEditingNotification along with the receiving object to the default notification center. The posted notification’s user info contains the contents of notification’s user info dictionary, plus an additional key-value pair. The additional key is “NSFieldEditor”; the value for this key is the text object that began editing. After posting the notification, NSMatrix sends an endEditing(_:) message to the selected cell, draws and makes the selected cell key, and then takes the appropriate action based on which key was used to end editing (Return, Tab, or Back-Tab).

## See Also

### Editing Text in Cells

- [selectText(_:)](appkit/nsmatrix/selecttext(_:).md)
- [selectText(atRow:column:)](appkit/nsmatrix/selecttext(atrow:column:).md)
- [textShouldBeginEditing(_:)](appkit/nsmatrix/textshouldbeginediting(_:).md)
- [textDidBeginEditing(_:)](appkit/nsmatrix/textdidbeginediting(_:).md)
- [textDidChange(_:)](appkit/nsmatrix/textdidchange(_:).md)
- [textShouldEndEditing(_:)](appkit/nsmatrix/textshouldendediting(_:).md)
