Archiving vs NSData writeToFile Confusion


#1

I could never find the Possessions.data file. I dont have the directory /Library/Application Support/iPhoneSimulator etc… I have xcode 3.2.6 with 4.3SDK. I searched for the file with spotlight but nothing.

So then we come to writing NSData to disk. And we are told that "Because the images for each possession are not archived, we still have to write out the images to disk, and so we use NSData.

So with archiving we only archived/wrote the images key, a string, to disk, yes? The image itself was still stored in the ImageCache singleton, until the app was terminated. Then the ImageCache was cleared, and therefore we had no images once we ran the app again, just the other values like name, serial and date, right?