Instance Method

encodeCGSize:forKey:

Encodes size information and associates it with the specified key in the coder’s archive.

Declaration

- (void)encodeCGSize:(CGSize)size forKey:(NSString *)key;

Parameters

size

The size information to encode.

key

The key identifying the data.

Discussion

When decoding the data from the archive, you pass the value in the key parameter to the corresponding decodeCGSizeForKey: method to retrieve the data.

See Also

Encoding Geometry-Based Data

- encodeCGAffineTransform:forKey:

Encodes an affine transform and associates it with the specified key in the receiver’s archive.

- encodeCGPoint:forKey:

Encodes a point and associates it with the specified key in the receiver’s archive.

- encodeCGRect:forKey:

Encodes a rectangle and associates it with the specified key in the receiver’s archive.

- encodeCGVector:forKey:

Encodes vector data and associates it with the specified key in the coder’s archive.

- encodeDirectionalEdgeInsets:forKey:

Encodes directional edge inset data and associates it with the specified key in the coder’s archive.

- encodeUIEdgeInsets:forKey:

Encodes edge inset data and associates it with the specified key in the coder’s archive.

- encodeUIOffset:forKey:

Encodes offset data and associates it with the specified key in the coder’s archive.