Contents

CGLayerRetain

Increments the retain count of a layer object.

Declaration

extern CGLayerRef CGLayerRetain(CGLayerRef layer);

Parameters

  • layer:

    The layer to retain.

Return Value

The same layer you passed in as the layer parameter.

Discussion

This function is equivalent to calling CFRetain except that it does not crash if the layer parameter is null.

See Also

Retaining and Releasing Color Objects