Protocol

NSKeyedUnarchiverDelegate

The optional methods implemented by the delegate of a keyed unarchiver.

Topics

Decoding Objects

func unarchiver(NSKeyedUnarchiver, cannotDecodeObjectOfClassName: String, originalClasses: [String])

Informs the delegate that the class with a given name is not available during decoding.

func unarchiver(NSKeyedUnarchiver, didDecode: Any?)

Informs the delegate that a given object has been decoded.

func unarchiver(NSKeyedUnarchiver, willReplace: Any, with: Any)

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

Finishing Decoding

func unarchiverDidFinish(NSKeyedUnarchiver)

Notifies the delegate that decoding has finished.

func unarchiverWillFinish(NSKeyedUnarchiver)

Notifies the delegate that decoding is about to finish.

Relationships

Inherits From

See Also

Keyed Archivers

class NSKeyedArchiver

A coder that stores an object's data to an archive referenced by keys.

protocol NSKeyedArchiverDelegate

The optional methods implemented by the delegate of a keyed archiver.

class NSKeyedUnarchiver

A decoder that restores data from an archive referenced by keys.

class NSCoder

An abstract class that serves as the basis for objects that enable archiving and distribution of other objects.