• 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
Objects disappear while encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Objects disappear while encoding


  • Subject: Objects disappear while encoding
  • From: Ian Jackson <email@hidden>
  • Date: Sun, 26 Aug 2007 21:44:28 +1200

Hi Cocoa developers,

My question is about archiving/encoding. I want to archive an array containing my objects. I have a NSLog which tells me how many objects are in the array, as the objects are being added. I also have another NSLog that tells me how many objects are in the array, while inside the encodeWithCoder: method. So while the first log happily counts 1, 2 etc, the second one, inside the encoding method says there are no objects. And this appears to be true via a breakpoint too.

It's so frustrating, any help would be great. I can post a bit of code if it might help, but I feel like there might be an obvious answer to this.

Ian
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • NSLog
      • From: Jim Graham <email@hidden>
    • Re: Objects disappear while encoding
      • From: Tommy Nordgren <email@hidden>
  • Prev by Date: XPath parsing
  • Next by Date: Re: Objects disappear while encoding
  • Previous by thread: XPath parsing
  • Next by thread: Re: Objects disappear while encoding
  • Index(es):
    • Date
    • Thread