Class

EKObject

An abstract superclass for all Event Kit classes that have instances that are persistent.

Declaration

@interface EKObject : NSObject

Overview

EKObject provides fine control when saving and restoring property settings. For example, you can find out if a persistent object was modified locally and whether it needs to be saved. If the object has changed in the event store since it was fetched, you can refresh the local copy by keeping local changes or by removing local changes. You can also roll back the object to the state when it was first fetched.

Topics

Instance Properties

Saving and Restoring State

hasChanges

Returns whether this object or any of the objects it contains has uncommitted changes.

- isNew

Returns whether this object has ever been saved.

- refresh

Merges changes to this object with the latest saved values.

- reset

Returns this object to its saved state.

- rollback

Rolls back the property values of this object to its original state when it was first fetched.

Relationships

Inherits From

See Also

Common Objects

EKCalendarItem

An abstract superclass for calendar events and reminders.

EKSource

An abstract superclass that represents the account a calendar belongs to.