Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}}
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