Instance Method

convertTime:toLayer:

Converts the time interval from the receiver’s time space to the specified layer’s time space

Declaration

- (CFTimeInterval)convertTime:(CFTimeInterval)t toLayer:(CALayer *)l;

Parameters

t

A point specifying a location in the coordinate system of l.

l

The layer into whose time space t is to be converted. The receiver and l and must share a common parent layer.

Return Value

The time interval converted to the time space of layer.

See Also

Mapping Between Coordinate and Time Spaces

- convertPoint:fromLayer:

Converts the point from the specified layer’s coordinate system to the receiver’s coordinate system.

- convertPoint:toLayer:

Converts the point from the receiver’s coordinate system to the specified layer’s coordinate system.

- convertRect:fromLayer:

Converts the rectangle from the specified layer’s coordinate system to the receiver’s coordinate system.

- convertRect:toLayer:

Converts the rectangle from the receiver’s coordinate system to the specified layer’s coordinate system.

- convertTime:fromLayer:

Converts the time interval from the specified layer’s time space to the receiver’s time space.