problem with NSUnarchiver
problem with NSUnarchiver
- Subject: problem with NSUnarchiver
- From: simone gabbriellini <email@hidden>
- Date: Mon, 7 Mar 2005 01:19:20 +0100
Hello list,
I have a mutable array which I fill with the content of a file.
I do:
(1) loadData = [[NSMutableArray alloc]initWithCapacity:4];
(2) loadData = [NSUnarchiver unarchiveObjectWithData:newData];
and I have:
(3) loadData = [[coder decodeObject] retain];
in my initWithCoder function
the fact is that if I ask to print the array at point (1) I obviusly obtain this ()
if I ask to printf the array at step (3) I got (ciao, come, stai, "adesso?") - which is the content previusly saved, but when I finally came to step (2) printf give me this result:
<MyDocument: 0x3b9090>
where is the content of my array? at this point, I'm not able to retrive it...
any help more than welcome
simone _______________________________________________
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