Instance Method

discardEditing()

Causes the receiver to discard any changes, restoring the previous values.

Declaration

func discardEditing()

See Also

NSEditor Conformance

func commitEditing() -> Bool

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