encodeInt32 :forKey:
Encodes a given 32-bit integer value and associates it with a given key.
- (void)encodeInt32:(int32_t)intv forKey:(NSString *)key
Parameters of [NSKeyedArchiver encodeInt32]
- intv
- The value to encode.
- key
- The key with which to associate intv. This value must not be
nil
.
Example of [NSKeyedArchiver encodeInt32]
- (void)encodeWithCoder:(NSCoder *)encoder;
{
[encoder encodeInt32:[self x] forKey:@"x"];
[encoder encodeInt32:[self y] forKey:@"y"];
[encoder encodeInt32:[self type] forKey:@"type"];
[encoder encodeBool:[self isSelected] forKey:@"isSelected"];
}