This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) encodeWithCoder: (NSCoder*) coder | |
{ | |
#define X(type, ivar) [coder encode##type:ivar forKey:@#ivar]; | |
#define BOX(type, ivar) [coder encodeObject:([NSValue valueWith##type:ivar]) forKey:@#ivar]; | |
XEncodeIvars | |
#undef BOX | |
#undef X | |
} | |
-(id) initWithCoder: (NSCoder*) decoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) encodeWithCoder: (NSCoder*) coder | |
{ | |
#define X(type, ivar) [coder encode##type:ivar forKey:@#ivar]; | |
XEncodeIvars | |
#undef X | |
} | |
-(id) initWithCoder: (NSCoder*) decoder | |
{ | |
#define X(type, ivar) ivar = [decoder decode##type##ForKey:@#ivar]; |