Rolls back the property values of this object to its original state when it was first fetched.
- iOS 5.0+
- macOS 10.8+
- Mac Catalyst 13.0+Beta
- watchOS 2.0+
Any local changes to this object are lost when invoking this method. This method does not re-fetch property values from the event store. This method does nothing if the object was never changed.
Saving and Restoring State
var hasChanges: Bool
Returns whether this object or any of the objects it contains has uncommitted changes.
Returns whether this object has ever been saved.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software