• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSKeyedUnarchiver Exception problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Prebinding disabled warnings
  • Next by Date: NSAttributedString and HTML
  • Previous by thread: Re: Prebinding disabled warnings
  • Next by thread: NSAttributedString and HTML
  • Index(es):
    • Date
    • Thread