Instance Method

decodeRestorableStateWithCoder:

Decodes and restores state-related information for the object.

Declaration

- (void)decodeRestorableStateWithCoder:(NSCoder *)coder;

Parameters

coder

The coder object to use to decode the state of the view.

Discussion

If your app supports state restoration, you can implement this method on any object for which you also overrode the encodeRestorableStateWithCoder: method. Your implementation of this method should read any saved state information from the archive and use it to restore the object to its previous configuration. If your encodeRestorableStateWithCoder: method called super, this method should similarly call super at some point in its implementation.

See Also

Encoding and Decoding the Object

- encodeRestorableStateWithCoder:

Encodes state-related information for the object.

- applicationFinishedRestoringState

Called after all objects have had a chance to decode their state.