ESProxy class documentation

Authors

David Chisnall

Software documentation for the ESProxy class

ESProxy : NSProxy

Declared in:
ESProxy.h
The ESProxy class is a simple proxy which is responsible for wrapping a model object being managed by CoreObject. The object will be serialized as will every message sent to it, allowing deterministic replay of the object's entire lifecycle. An object wrapped by this proxy should be the entry point into an object graph representing a document, or a major component in a composite document (e.g. an image in a larger work).

Instance Variables

Method summary

initWithObject: serializer: forBundle: 

- (id) initWithObject: (id)anObject serializer: (Class)aSerializer forBundle: (NSURL*)anURL;
Manage anObject, using aSerializer to for serialization

setVersion: 

- (int) setVersion: (int)aVersion;
Restore to a previous version.



Instance Variables for ESProxy Class

backend

@protected Class backend;
The class of the serializer's back end.

baseURL

@protected NSURL* baseURL;
The location at which serialized copies of the object should be stored.

fullSave

@protected ETSerializer* fullSave;
Serializer used to store full saves

object

@protected id object;
The real object.

serializer

@protected ETSerializer* serializer;
The serializer used to store deltas.

version

@protected int version;
The current version of the object.