encodeRootObject(_:)
An encoding method for subclasses to override to encode an interconnected group of objects, starting with the provided root object.
Declaration
func encodeRootObject(_ rootObject: Any)Discussion
NSCoder’s implementation simply invokes encode(_:).
This method must be matched by a subsequent decodeObject() message.
See Also
Related Documentation
Encoding General Data
encodeArray(ofObjCType:count:at:)encode(_:forKey:)encodeBycopyObject(_:)encodeByrefObject(_:)encodeBytes(_:length:)encodeBytes(_:length:forKey:)encodeConditionalObject(_:)encodeConditionalObject(_:forKey:)encode(_:)encode(_:forKey:)encode(_:forKey:)encodeCInt(_:forKey:)encode(_:forKey:)encode(_:forKey:)encode(_:forKey:)