Instance Method

encodeObject:forKey:

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

Declaration

- (void)encodeObject:(id)object forKey:(NSString *)key;

Parameters

objv

The value to encode. This value may be nil.

key

The key with which to associate objv. 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.

- encodeInt:forKey:

Encodes a given int 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software