---
title: commitEditing
framework: objectivec
role: symbol
role_heading: Instance Method
path: objectivec/nsobject-swift.class/commitediting
---

# commitEditing

Returns whether the receiver was able to commit any pending edits.

## Declaration

```occ
- (BOOL) commitEditing;
```

## Return Value

Return Value YES if the changes were successfully applied to the model, NO otherwise.

## Discussion

Discussion A commit is denied if the receiver fails to apply the changes to the model object, perhaps due to a validation error.

## See Also

### Related Documentation

- [discardEditing](objectivec/nsobject-swift.class/discardediting.md)
