DelayedDeletable

public protocol DelayedDeletable: class

Mechanica

Objects adopting the DelayedDeletable support two-step deletion.

  • hasChangedForDelayedDeletion Default implementation

    Mechanica

    Protocol DelayedDeletable.

    Checks whether or not the managed object’s markedForDeletion property has unsaved changes.

    Default Implementation

    Mechanica

    Protocol DelayedDeletable.

    Returns true if self has been marked for deletion.

    Declaration

    Swift

    var hasChangedForDelayedDeletion: Bool
  • Mechanica

    Protocol DelayedDeletable.

    This object can be deleted starting from this particular date.

    Declaration

    Swift

    var markedForDeletionAsOf: Date?
  • markForLocalDeletion() Default implementation

    Mechanica

    Protocol DelayedDeletable.

    Marks an object to be deleted at a later point in time.

    Default Implementation

    Mechanica

    Marks an object to be deleted at a later point in time. An object marked for local deletion will no longer match the notMarkedForDeletionPredicate.

    Declaration

    Swift

    func markForLocalDeletion()
  • Mechanica

    Protocol DelayedDeletable.

    Predicate to filter for objects that haven’t a deletion date.

    Declaration

    Swift

    public static var notMarkedForLocalDeletionPredicate: NSPredicate