Instance Method

archiver:willReplaceObject:withObject:

Informs the delegate that one given object is being substituted for another given object.

Declaration

- (void)archiver:(NSKeyedArchiver *)archiver willReplaceObject:(id)object withObject:(id)newObject;

Parameters

archiver

The archiver that sent the message.

object

The object being replaced in the archive.

newObject

The object replacing object in the archive.

Discussion

This method is called even when the delegate itself is doing, or has done, the substitution. The delegate may use this method if it is keeping track of the encoded or decoded objects.

See Also

Encoding Data and Objects

- archiver:didEncodeObject:

Informs the delegate that a given object has been encoded.

- archiverDidFinish:

Notifies the delegate that encoding has finished.

- archiver:willEncodeObject:

Informs the delegate that object is about to be encoded.

- archiverWillFinish:

Notifies the delegate that encoding is about to finish.