I am attempting to archive my class OCFrame which has two members, using NSKeyedArchiver.
@interface OCFrame : NSObject <NSCopying> {
CMAcceleration acc;
CMRotationRate rot;
}
I tried using both:
[coder encodeObject:rot forKey
"rot"];
and:
[coder encodeValueOfObjCType
encode(CMAcceleration) at:&acc];
and their corrasponding decode functions. It seems that NSKeyedArchiver cannot deal with structs.
How do I archive these?
@interface OCFrame : NSObject <NSCopying> {
CMAcceleration acc;
CMRotationRate rot;
}
I tried using both:
[coder encodeObject:rot forKey
and:
[coder encodeValueOfObjCType
and their corrasponding decode functions. It seems that NSKeyedArchiver cannot deal with structs.
How do I archive these?