textShouldBeginEditing(_:)
Invoked when a text object begins to change its text, this method requests permission for aTextObject to begin editing.
Declaration
@MainActor optional func textShouldBeginEditing(_ textObject: NSText) -> BoolDiscussion
If the delegate returns true, the text object proceeds to make changes. If the delegate returns false, the text object abandons the editing operation. This method is also invoked when the user drags and drops a file onto the text object.