Instance Property

layerContentsPlacement

The current layer contents placement policy.

Declaration

@property NSViewLayerContentsPlacement layerContentsPlacement;

Discussion

The content placement determines how the backing layer’s existing cached content image will be mapped into the layer as the layer is resized. It is analogous to, and underpinned by, the contentsGravity property of the CALayer class. The default value of this property is NSViewLayerContentsPlacementScaleAxesIndependently. For a list of supported values, see NSViewLayerContentsPlacement.

For additional information about the performance impacts of this property, see the layerContentsRedrawPolicy property.

See Also

Managing the View’s Layer

wantsLayer

A Boolean value indicating whether the view uses a layer as its backing store.

wantsUpdateLayer

A Boolean value indicating which drawing path the view takes when updating its contents.

layer

The Core Animation layer that the view uses as its backing store.

- makeBackingLayer

Creates the view’s backing layer.

layerContentsRedrawPolicy

The contents redraw policy for the view’s layer.

canDrawSubviewsIntoLayer

A Boolean value indicating whether the view incorporates content from its subviews into its own layer.

layerUsesCoreImageFilters

A Boolean value indicating whether the view’s layer uses Core Image filters and needs in-process rendering.

NSViewLayerContentScaleDelegate

An optional layer delegate method for handling resolution changes.