Re: NSCoding oddity
Re: NSCoding oddity
- Subject: Re: NSCoding oddity
- From: Raphael Sebbe <email@hidden>
- Date: Tue, 6 Nov 2001 20:34:12 +0100
On Tuesday, November 6, 2001, at 08:01 PM, Bruce Sturgen wrote:
>
// Branch:
>
-(void)encodeWithCoder:(NSCoder*)coder {
>
[super encodeWithCoder:coder];
>
[children encodeWithCoder:coder];
>
}
>
Should be:
// Branch:
-(void)encodeWithCoder:(NSCoder*)coder {
[super encodeWithCoder:coder];
[coder encodeObject:children];
}
You only invoke -encodeWithCoder: with super.
Raphael