---
title: "textDidBeginEditing(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextfield/textdidbeginediting(_:)"
---

# textDidBeginEditing(_:)

Posts a notification to the default notification center that the text is about to go into edit mode.

## Declaration

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

## Parameters

- `notification`: The doc://com.apple.appkit/documentation/AppKit/NSControl/textDidBeginEditingNotification notification to post to the default notification center.

## Discussion

Discussion This action causes the text field’s delegate to receive a controlTextDidBeginEditing: message. See NSControl for more information about the text delegate method.

## See Also

### Implementing Delegate Methods

- [textShouldBeginEditing(_:)](appkit/nstextfield/textshouldbeginediting(_:).md)
- [textDidChange(_:)](appkit/nstextfield/textdidchange(_:).md)
- [textShouldEndEditing(_:)](appkit/nstextfield/textshouldendediting(_:).md)
- [textDidEndEditing(_:)](appkit/nstextfield/textdidendediting(_:).md)
