---
title: "controlTextDidEndEditing(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscontroltexteditingdelegate/controltextdidendediting(_:)"
---

# controlTextDidEndEditing(_:)

Tells the delegate that the control finished editing its text content and committed the changes.

## Declaration

```swift
@MainActor optional func controlTextDidEndEditing(_ obj: Notification)
```

## Parameters

- `obj`: A notification object that contains details about the editing configuration.

## Discussion

Discussion Use the key “NSFieldEditor” to obtain the field editor from the notification object’s userInfo dictionary. note: If you call abortEditing() to discard pending edits, the control doesn’t call controlTextDidEndEditing(_:).

## See Also

### Instance Methods

- [controlTextDidBeginEditing(_:)](appkit/nscontroltexteditingdelegate/controltextdidbeginediting(_:).md)
- [controlTextDidChange(_:)](appkit/nscontroltexteditingdelegate/controltextdidchange(_:).md)
