Informs the delegate that a given object has been encoded.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The archiver that sent the message.
The object that has been encoded.
The delegate might restore some state it had modified previously, or use this opportunity to keep track of the objects that are encoded.
This method is not called for conditional objects until they are actually encoded (if ever).