Objects disappear while encoding
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