Contents

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) -> Bool

Discussion

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.

See Also

Related Documentation

Editing text