[iPhone]Objective C, objects which do not conform to NSCoding. How to write them to a file.
- by Noah
Hi,
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