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

NSArchiverArchiveInconsistency ???


  • Subject: NSArchiverArchiveInconsistency ???
  • From: Giovanni Donelli <email@hidden>
  • Date: Wed, 18 Feb 2004 22:33:51 +0100

Hello Gurus,
I've been hitting on this problem for whole the day so I decided to write you,
I sub-classed the NSTextField and I because I wanted to make it a IBPalette added the method in order to support <NSCoding>

now when I run my application I get:

2004-02-18 21:56:42.688 FrameworkDebug[6831] An uncaught exception was raised
2004-02-18 21:56:42.717 FrameworkDebug[6831] *** Incorrect archive: unexpected byte
2004-02-18 21:56:42.728 FrameworkDebug[6831] *** Uncaught exception: <NSArchiverArchiveInconsistency> *** Incorrect archive: unexpected byte

but I really can't see where the problem is since these are the 2 methods:
-------------------------
- (void)encodeWithCoder:(NSCoder *)coder
{
[super encodeWithCoder:coder];
[coder encodeValueOfObjCType:@encode(typeof(underlineWhenMouseIsOver)) at:&underlineWhenMouseIsOver];
}

- (id)initWithCoder:(NSCoder *)decoder
{
if ( self = [super initWithCoder:decoder] ) {
[decoder decodeValueOfObjCType:@encode(typeof(underlineWhenMouseIsOver)) at:&underlineWhenMouseIsOver];
}
return self;
}
-------------------------
which are very basic! I can't really see where the problem is.

anyone had the same issue? any advice?

Thank you for your help!
Giovanni Donelli
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSArchiverArchiveInconsistency ???
      • From: "Louis C. Sacha" <email@hidden>
    • Re: NSArchiverArchiveInconsistency ???
      • From: Ryan Bates <email@hidden>
  • Prev by Date: Re: passing arg 2 of 'NSApplicationMain' from incompatible pointer type
  • Next by Date: Re: red black trees
  • Previous by thread: Re: piped unzip (and this time it's not the wrong codesnipper)
  • Next by thread: Re: NSArchiverArchiveInconsistency ???
  • Index(es):
    • Date
    • Thread