Re: NSCoding oddity
Re: NSCoding oddity
- Subject: Re: NSCoding oddity
- From: Bruce Sturgen <email@hidden>
- Date: Tue, 6 Nov 2001 13:39:51 -0600
DOH! Thanks. Could have stared at that for hours and not seen it.
On Tuesday, November 6, 2001, at 01:34 PM, Raphael Sebbe wrote:
>
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
_________________________________
Bruce E. Sturgen
Think Different!
ICQ: 120302101 AIM: bsturg3n
immoderation on behalf of a good cause is how saints are made -- larry
wall, inventor of Perl