NSKeyedUnarchiver Exception problem
NSKeyedUnarchiver Exception problem
- Subject: NSKeyedUnarchiver Exception problem
- From: Greg Hulands <email@hidden>
- Date: Sat, 21 Sep 2002 12:20:36 +1000
Hi,
When I open up a document for reading that uses the new keyed archiver,
I get the following exception.
-[NSKeyedUnarchiver decodeObjectForKey:]: value is not a reference as
expected
Does anyone know why this would be occurring? Below are snippets on the
line that it is occurring in the initWithCoder method. The screen is an
object that contains many telemetry objects, each telemetry object
contains a reference back to its screen. Could this be a problem?
Any help is greatly appreciated.
Regards,
Greg
- (id)initWithCoder:(NSCoder *)coder
{
[super init];
[self setScreen:[coder decodeObjectForKey:TATelemetryScreenKey]];
return self;
}
- (void)encodeWithCoder:(NSCoder *)coder
{
[coder encodeObject:[self screen] forKey:TATelemetryScreenKey];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.