• 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: Keyed encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyed encoding


  • Subject: Re: Keyed encoding
  • From: Will Mason <email@hidden>
  • Date: Tue, 21 Jun 2005 09:43:02 -0700 (PDT)

> The arrays contain custom class objects. For each of these I have
> defined initWithCoder methods that use encodeObject:forKey,
> encodeBool:forKey, etc. calls to archive their data members. The
> calls to encodeObject:forKey only pass built-in class objects
> (NSString, NSNumber, NSCalendarDate).

initWithCoder: is for decoding, not for encoding, so calling
encodeObject:forKey: in initWithCoder: is not very productive. Have you
defined encodeWithCoder: for your custom classes, putting the
encodeObject:forKey: in that method?

Cheers,
Will
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Keyed encoding
      • From: Andy Bettis <email@hidden>
References: 
 >Keyed encoding (From: Andy Bettis <email@hidden>)

  • Prev by Date: NSTreeController - please help, can't see the forest for the tree controller
  • Next by Date: Re: Drawing the focus ring
  • Previous by thread: Keyed encoding
  • Next by thread: Re: Keyed encoding
  • Index(es):
    • Date
    • Thread