• 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
problem with NSUnarchiver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: problem with NSUnarchiver
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Learning Cocoa/ObjectiveC and wondering why I had to do this.
  • Next by Date: Quick polymorphism and subclassing question
  • Previous by thread: Re: Learning Cocoa/ObjectiveC and wondering why I had to do this.
  • Next by thread: Re: problem with NSUnarchiver
  • Index(es):
    • Date
    • Thread