Instance Property

layer

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

Declaration

@property(strong) CALayer *layer;

Discussion

Use this property to set or get the layer associated with the view, if any. When set, the layer serves as the backing store for the view’s contents.

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.

- makeBackingLayer

Creates the view’s backing layer.

layerContentsPlacement

The current layer contents placement policy.

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.