Array Problems
Array Problems
- Subject: Array Problems
- From: David Rocamora <email@hidden>
- Date: Sun, 10 Apr 2005 13:58:13 -0400
I'm pretty new to Cocoa and Objective-C so I imagine this problem is
pretty easy to solve for an expert, but I am stumped. I have a
document based program that needs to save a NSMutableArray of objects
to a file using NSArchiver. Everything is compiling without errors or
warnings and when I run the program it appears to be saving. When I
load the data back from the file It only has one entry in the array.
This entry also does not contain any of the changes that were made to
it.
My first thoughts were that the array was somehow not having anything
added to it. So I used an NSLog to display the contents of the array
in every method that did something to the array. The correct data is
in all of the methods I wrote (as well as init), but not in methods
like dataRepresentationOfType or dealloc.
I hope someone has some pointers to help me figure this out.
Thanks in advance,
Dave
_______________________________________________
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