• 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
NSKeyedArchiver exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSKeyedArchiver exception


  • Subject: NSKeyedArchiver exception
  • From: Ken Victor <email@hidden>
  • Date: Mon, 19 Sep 2005 14:27:28 -0700

i've narrowed a problem i'm getting to the following 3 lines of code:

	NSMutableDictionary* piDict = [[myDoc printInfo] dictionary];
	NSPrintInfo* newPI = [[NSPrintInfo alloc] initWithDictionary: piDict];
	NSData* pd = [NSKeyedArchiver archivedDataWithRootObject: newPI];

the third line throws the following exception:

*** -[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs

i've searched the archives and didn't find anything that would explain this.

what am i doing wrong?

thanx,
ken
_______________________________________________
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


  • Follow-Ups:
    • Re: NSKeyedArchiver exception
      • From: Will Mason <email@hidden>
  • Prev by Date: JOB: Boulder, CO - need Mac Developer with Cocoa experience!
  • Next by Date: Re: JOB: Boulder, CO - need Mac Developer with Cocoa experience!
  • Previous by thread: Re: JOB: Boulder, CO - need Mac Developer with Cocoa experience!
  • Next by thread: Re: NSKeyedArchiver exception
  • Index(es):
    • Date
    • Thread