• 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
Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}


  • Subject: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}
  • From: Philip Dow <email@hidden>
  • Date: Wed, 13 Jul 2011 12:20:34 -0500

I am trying to decode a 3rd party archive encoded in the old NSArchiver (not keyed) format. At a point in the decoding, I expect to find a CGRect, but when I call

[coder decodeValueOfObjCType:@encode(CGRect) at:&myRect]

an exception is raised with the error:

file inconsistency: read '{?={?=ff}{?=ff}}', expecting '{CGRect={CGPoint=dd}{CGSize=dd}}'

Sure enough, if I open the file in a text editor, I see {?={?=ff}{?=ff}}.

According to the docs, the curly braces indicate a structure is encoded, which I would expect for CGRect, but the ? indicates an unknown type. I'm stumped for a solution and was wondering if anyone might have an insight.

~Phil_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}
      • From: glenn andreas <email@hidden>
  • Prev by Date: FSMountServerVolumeSync without dialog
  • Next by Date: Cocoaheads Lake Forest meeting TONIGHT, 7pm, El Toro Library - Early Lion Celebration, Late WWDC wrapup
  • Previous by thread: FSMountServerVolumeSync without dialog
  • Next by thread: Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}
  • Index(es):
    • Date
    • Thread