I am using an Objective c class, a subclass of NSObject.
This class cannot be modified. I have an instance of this class that I wish to write to a file which can be retrieved and later reinstate. The object does not conform to NSCoding.
To sum up, I need to save an instance of a class to a file which can be retrieved later, without using any of the NSCoding methods such as NSKeyedArchiving encodeWithCoder …
Using them returns this…
NSInvalidArgumentException …encodeWithCoder:]
unrecognised selector sent to instance…
Is there any other way I can store this object for later use
Thank you
p.s The class is a UIEvent
Can you subclass the class and implement the NSCoding protocol in the subclass?