---
title: validateEditing()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscontrol/validateediting()
---

# validateEditing()

Validates changes to any user-typed text.

## Declaration

```swift
func validateEditing()
```

## Discussion

Discussion Validation sets the object value of the cell to the current contents of the cell’s editor (the NSText object used for editing), storing it as a simple NSString or an attributed string object based on the attributes of the editor.

## See Also

### Managing the Field Editor

- [abortEditing()](appkit/nscontrol/abortediting().md)
- [currentEditor()](appkit/nscontrol/currenteditor().md)
- [edit(withFrame:editor:delegate:event:)](appkit/nscontrol/edit(withframe:editor:delegate:event:).md)
- [endEditing(_:)](appkit/nscontrol/endediting(_:).md)
- [select(withFrame:editor:delegate:start:length:)](appkit/nscontrol/select(withframe:editor:delegate:start:length:).md)
