My custom object contains an array of unichar
primitives. However there is no encodeUnichar:ForKey
method in NSCoder. My solution is to transform my 2d unichar
array into an NSString
and then encode that.
However, the absence of a method to encode character makes me feel like I am missing something obvious, especially because I couldn't find the answer on Stack Overflow.
Before I embark on my NSString method, does anyone know if there is a simpler way to do this built in into the NSCoding protocol?
Thanks Lee.