Protocol: NSKeyedUnarchiverDelegate
Overview
The NSKeyedUnarchiverDelegate protocol defines the optional methods implemented by delegates of NSKeyedUnarchiver objects.Informs the delegate that the class with a given name is not available during decoding.Informs the delegate that a given object has been decoded.Informs the delegate that one object is being substituted for another.Notifies the delegate that decoding has finished.Notifies the delegate that decoding is about to finish.
Instance Method Summary (collapse)
-
- unarchiver:cannotDecodeObjectOfClassName:originalClasses:
Informs the delegate that the class with a given name is not available during decoding.
-
- unarchiver:didDecodeObject:
Informs the delegate that a given object has been decoded.
-
- unarchiver:willReplaceObject:withObject:
Informs the delegate that one object is being substituted for another.
-
- unarchiverDidFinish:
Notifies the delegate that decoding has finished.
-
- unarchiverWillFinish:
Notifies the delegate that decoding is about to finish.
Instance Method Details
- (Class) unarchiver(unarchiver, cannotDecodeObjectOfClassName:name, originalClasses:classNames)
Informs the delegate that the class with a given name is not available during decoding. The delegate may, for example, load some code to introduce the class to the runtime and return the class, or substitute a different class object. If the delegate returns nil, unarchiving aborts and the method raises an NSInvalidUnarchiveOperationException.
- (Object) unarchiver(unarchiver, didDecodeObject:object)
Informs the delegate that a given object has been decoded. This method is called after object has been sent initWithCoder: and awakeAfterUsingCoder:.The delegate may use this method to keep track of the decoded objects.
- (Object) unarchiver(unarchiver, willReplaceObject:object, withObject:newObject)
Informs the delegate that one object is being substituted for another.
This method is called even when the delegate itself is doing, or has done, the substitution with unarchiver:didDecodeObject:.The delegate may use this method if it is keeping track of the encoded or decoded objects.
- (Object) unarchiverDidFinish(unarchiver)
Notifies the delegate that decoding has finished.
- (Object) unarchiverWillFinish(unarchiver)
Notifies the delegate that decoding is about to finish.