Contents

commitEditing()

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

Declaration

@MainActor func commitEditing() -> Bool

Return Value

Returns true if the changes were successfully applied to the model, false otherwise.

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

NSEditor Conformance