Instance Method

encodeInt:forKey:

Encodes a given int value and associates it with a key.

Declaration

- (void)encodeInt:(int)value forKey:(NSString *)key;

Parameters

intv

The value to encode.

key

The key with which to associate intv. This value must not be nil.

See Also

Encoding Data and Objects

- encodeBool:forKey:

Encodes a given Boolean value and associates it with a key.

- encodeBytes:length:forKey:

Encodes a given number of bytes from a given C array of bytes and associates them with a key.

- encodeConditionalObject:forKey:

Encodes a reference to a given object and associates it with a key only if it has been unconditionally encoded elsewhere in the archive.

- encodeDouble:forKey:

Encodes a given double value and associates it with a key.

- encodeFloat:forKey:

Encodes a given float value and associates it with a key.

- encodeInt32:forKey:

Encodes a given 32-bit integer value and associates it with a key.

- encodeInt64:forKey:

Encodes a given 64-bit integer value and associates it with a key.

- encodeObject:forKey:

Encodes a given object and associates it with a given key.