<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSControl/textDidBeginEditingNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSControlTextDidBeginEditingNotification"
  },
  "title" : "textDidBeginEditingNotification"
}
-->

# textDidBeginEditingNotification

Sent when a control with editable cells begins an edit session.

```
class let textDidBeginEditingNotification: NSNotification.Name
```

## Discussion

The field editor of the edited cell originally sends an [`didBeginEditingNotification`](/documentation/AppKit/NSText/didBeginEditingNotification) to the control, which passes it on in this form to its delegate. The notification object is the `NSControl` object posting the notification. The `userInfo` dictionary contains the following information:

|Key              |Value                         |
|-----------------|------------------------------|
|`“NSFieldEditor”`|The edited cell’s field editor|

See the <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/controlTextDidEndEditing:> method for details. The system posts this notification on the main actor.

To observe this notification using Swift concurrency, use [`NSControl.TextDidBeginEditingMessage`](/documentation/AppKit/NSControl/TextDidBeginEditingMessage).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)