• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSCoding oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCoding oddity
      • From: Bruce Sturgen <email@hidden>
References: 
 >NSCoding oddity (From: Bruce Sturgen <email@hidden>)

  • Prev by Date: Correct behavior of NSTableView?
  • Next by Date: Re: NSCoding oddity
  • Previous by thread: NSCoding oddity
  • Next by thread: Re: NSCoding oddity
  • Index(es):
    • Date
    • Thread