textShouldBeginEditing(_:)
Requests permission to begin editing a text object.
Declaration
func textShouldBeginEditing(_ textObject: NSText) -> BoolParameters
- textObject:
The object to begin editing.
Return Value
Discussion
If the text field isn’t editable, this method returns false immediately. If the text field is editable and its delegate responds to control(_:textShouldBeginEditing:), this method invokes that method and returns the result. Otherwise, it returns true to allow editing to occur. See NSControl for more information about the text delegate method.