Instance Method

encodeInt:forKey:

Encodes a C integer value and associates it with the string key.

Declaration

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

Discussion

Subclasses must override this method if they perform keyed coding.

See Also

Encoding General Data

- encodeArrayOfObjCType:count:at:

Encodes an array of the given Objective-C type, provided the number of items and a pointer.

- encodeBool:forKey:

Encodes a Boolean value and associates it with the string key.

- encodeBycopyObject:

An encoding method for subclasses to override such that it creates a copy, rather than a proxy, when decoded.

- encodeByrefObject:

An encoding method for subclasses to override such that it creates a proxy, rather than a copy, when decoded.

- encodeBytes:length:

Encodes a buffer of data of an unspecified type.

- encodeBytes:length:forKey:

Encodes a buffer of data, given its length and a pointer, and associates it with a string key.

- encodeConditionalObject:

An encoding method for subclasses to override to conditionally encode an object, preserving common references to it.

- encodeConditionalObject:forKey:

An encoding method for subclasses to override to conditionally encode an object, preserving common references to it, only if it has been unconditionally encoded.

- encodeDataObject:

Encodes a given data object.

- encodeDouble:forKey:

Encodes a double-precision floating point value and associates it with the string key.

- encodeFloat:forKey:

Encodes a floating point value and associates it with the string key.

- encodeInteger:forKey:

Encodes an integer value and associates it with the string key.

- encodeInt32:forKey:

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

- encodeInt64:forKey:

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

- encodeNXObject:

Encodes an old-style object onto the coder.

Deprecated
- encodeObject:

Encodes an object.

- encodeObject:forKey:

Encodes an object and associates it with the string key.

- encodePoint:

Encodes a point.

- encodePoint:forKey:

Encodes a point and associates it with the string key.

- encodePropertyList:

Encodes a property list.

- encodeRect:

Encodes a rectangle structure.

- encodeRect:forKey:

Encodes a rectangle structure and associates it with the string key.

- encodeRootObject:

An encoding method for subclasses to override to encode an interconnected group of objects, starting with the provided root object.

- encodeSize:

Encodes a size structure.

- encodeSize:forKey:

Encodes a size structure and associates it with the given string key.

- encodeValueOfObjCType:at:

Encodes a value of the given type at the given address.

- encodeValuesOfObjCTypes:

Encodes a series of values of potentially differing Objective-C types.

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