I'm pretty new to objective-c and I want to be able to archive a char*
streams (binary data of images).
The trivial way (for me) to do so is to wrap the char*
pointer with a objective-c class conforming to NSCoding protocol
. Is this the right approach or is there a simpler / more convenient way to do so?
Use an NSData to encapsulate the data. It is NSCoding compliant.