Unarchiver problems!
Unarchiver problems!
- Subject: Unarchiver problems!
- From: Tom Birch <email@hidden>
- Date: Sat, 26 Mar 2005 16:29:23 +1100
This is following on from my "Bindings problems" thread, I have reduced
the problem down to something with NSUnarchiver, or, something. Here is
a gdb trace that should give you a fair idea of what is going on:
http://tbir905.web.cse.unsw.edu.au/gdbsession.txt
in Controller.m I am saving the array managed by the NSArrayController,
using this call:
[NSArchiver archiveRootObject:files toFile:TBPODatabasePath];
and yes, I am checking to see that I can write to the file, and it is
being written to, and decoded from (see the gdb session)
on close inspection the value of 'isa' for the dict changes, the first
time I print it, it's NSCFDictionary or something, the next time I
print it, it's something withi the name value pointing to 0x10000. I've
been told this has something to do with something called
"isa-swizzling" which happens with bindings, but I have no idea about
that.
anyway even when I run without a debugger, and removing the
'description' method (to avoid the isa-swizzling bug mentioned here:
http://www.cocoabuilder.com/archive/message/cocoa/2004/8/29/115963) I
still get an EXC_BAD_ACCESS signal when running my app.
I just want to implement saving/restoring state to my VERY simple
NSArrayController based app! Is there some documented way to do this
that I'm completely missing?
Tom
_______________________________________________
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