Hey,
I'm trying to make a few of my classes NSCoding compliant and I am having trouble encoding arrays with:
I have both an array of NSString objects and an array of a custom objects. When I try and encode the NSString array using:
I get the error message:
I don't understand why NSString is not supported since it complies with the NSCoding protocol? Is there a list of supported types somewhere?
Any help would be greatly appreciated,
-Ross
I'm trying to make a few of my classes NSCoding compliant and I am having trouble encoding arrays with:
Code:
- (void)encodeArrayOfObjCType:(const char *)itemType count:(NSUInteger)count at:(const void *)address
I have both an array of NSString objects and an array of a custom objects. When I try and encode the NSString array using:
Code:
[encoder encodeArrayOfObjCType:@encode( NSString ) count:[myArray count] at:&myArray];
I get the error message:
CoreAnimation: ignoring exception: *** -[NSKeyedArchiver encodeArrayOfObjCType:count:at:]: unsupported type "{NSString=#}" for array encoding
I don't understand why NSString is not supported since it complies with the NSCoding protocol? Is there a list of supported types somewhere?
Any help would be greatly appreciated,
-Ross