Re: Objects disappear while encoding
Re: Objects disappear while encoding
- Subject: Re: Objects disappear while encoding
- From: Tommy Nordgren <email@hidden>
- Date: Sun, 26 Aug 2007 12:14:07 +0200
On 26 aug 2007, at 11.44, Ian Jackson wrote:
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
_______________________________________________
You are probably sending a message to nil.
This will return nil, which at the machine level is represented by
the same value as 0.
----------------------------------
Skinheads are so tired of immigration, that they are going to move to
a country that don't accept immigrants!
Tommy Nordgren
email@hidden
_______________________________________________
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