---
title: didEndEditingNotification
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstext/didendeditingnotification
---

# didEndEditingNotification

Posted when focus leaves an NSText object, whether or not any operation has changed characters or formatting attributes.

## Declaration

```swift
class let didEndEditingNotification: NSNotification.Name
```

## Discussion

Discussion The notification object is the notifying NSText object. The userInfo dictionary contains the following information:  |   |   |   |  note: It is common for didEndEditingNotification to be sent without a matching didBeginEditingNotification. The begin notification is only sent if the user actually makes changes (that is, types something or changes formatting attributes). However, the end notification is sent when focus leaves the text view, regardless of whether there was a change. This distinction enables an application to know whether the user actually made a change to the text or just clicked in the text view and then clicked outside it. In both cases, didEndEditingNotification is sent, but to tell the difference, the application can listen for didBeginEditingNotification. To observe this notification using Swift concurrency, use NSTextView.DidEndEditingMessage.

## See Also

### Notifications

- [didBeginEditingNotification](appkit/nstext/didbegineditingnotification.md)
- [didChangeNotification](appkit/nstext/didchangenotification.md)
- [movementUserInfoKey](appkit/nstext/movementuserinfokey.md)
- [NSTextMovement](appkit/nstextmovement.md)
