I know that when you write the initWithCoder method of a subclass of an object that implements NSCoding you have to call super initWithCoder (instead of super init), but do I have to call super encodeWithCoder in the implementation of encodeWithCoder?
I know that when you write the initWithCoder method of a subclass of an
Share
If you inherit from a class that supports Encoding, it is generally adviseable to use
[super encodeWithCoder:]in yourencodeWithCoder:method, as much as[super initWithCoder:]is to be used in theinitWithCoder:method.Documentation : NSCoding Protocol Reference
Reference : http://www.cocoadev.com/index.pl?NSCoder