ObjectRepresentation
public protocol ObjectRepresentation : AnyObjectRepresentation
An object that acts as interfaces for CoreStoreObjects or NSManagedObjects
-
The object type represented by this protocol
Declaration
Swift
associatedtype ObjectType : DynamicObject -
An instance that may be observed for object changes.
Declaration
Swift
func asPublisher(in dataStack: DataStack) -> ObjectPublisher<ObjectType> -
A read-only instance in the
DataStack.Declaration
Swift
func asReadOnly(in dataStack: DataStack) -> ObjectType? -
An instance that may be mutated within a
BaseDataTransaction.Declaration
Swift
func asEditable(in transaction: BaseDataTransaction) -> ObjectType? -
A thread-safe
structthat is a full-copy of the object’s propertiesDeclaration
Swift
func asSnapshot(in dataStack: DataStack) -> ObjectSnapshot<ObjectType>? -
A thread-safe
structthat is a full-copy of the object’s propertiesDeclaration
Swift
func asSnapshot(in transaction: BaseDataTransaction) -> ObjectSnapshot<ObjectType>?
View on GitHub
ObjectRepresentation Protocol Reference