I haven't seen anything about this in this forum, but the problem was mentioned over and over again on macosx-dev without any concrete answers. I'm trying to archive a Java Object to file and then unarchive it for later use. The problem is, it never works. I mean, it does SOMETHING, but nothing useful. I use NSArchiver.archiveRootObjectToFile(Object, String) to save the Object to file and then read it with NSUnarchiver.unarchiveObjectWithFile(String). Uhmmm... I don't rember exactly what happened next (it happened at home, and I tried 18 billion different ways to get it to wirk), but I remember being able to pico the output file and seing the Class name of the Object in the file, but when I tried to read the file (yes, I close my pico process first), I believe nothing happened. It wouldn't even get error messages. Well, I only have OS 9 machines at work, so I can't replicate this to give more specific details... but when I get home, I'll add more specific information.
I hope someone knows wht's up (or a work around) because this is really annoying me.
Thanks,
F-bacher
Oh, in case you need to know what kind of Object I'm encoding, it's a generic object link list; you know, value = anObject, tail = a pointer to a new ObjectList. I decided to make a general link list class so I wouldn't have to define it for each class and keep rewritting all the usefull methods I came up with. My ObjectList contains both pure Java Objects (like Strings) and also NextStep Objects (like NSColor).