Protocol

QCCompositionRenderer

The QCRenderer protocol defines the methods used to pass data to the input ports or retrieve data from the output ports of the root patch of a Quartz Composer composition. This protocol is adopted by the QCRenderer, QCView, and QCCompositionLayer classes.

Declaration

protocol QCCompositionRenderer

Topics

Passing and Retrieving Values From a Composition

func setValue(Any!, forInputKey: String!) -> Bool

Sets the value for an input port of a composition.

Required.

func value(forInputKey: String!) -> Any!

Returns the value for an input port of a composition.

Required.

func value(forOutputKey: String!) -> Any!

Returns the value for an output port of a composition.

Required.

func value(forOutputKey: String!, ofType: String!) -> Any!

Returns the current value on an output port (identified by its key) of the root patch of the composition.

Required.

Getting Input and Output Keys

func inputKeys() -> [Any]!

Returns an array that contains the keys that identify the input ports of the root patch of the composition.

Required.

func outputKeys() -> [Any]!

Returns an array that contains the keys that identify the output ports of the root patch of the composition.

Required.

Getting Attributes

func attributes() -> [AnyHashable : Any]!

Returns the attributes of the composition associated with the renderer.

Required.

Storing Arbitrary Information

func userInfo() -> NSMutableDictionary!

Returns a mutable dictionary for storing arbitrary information.

Required.

Saving and Restoring Input Values

func propertyListFromInputValues() -> Any!

Returns a property list object that represents the current values for all the input keys of the composition.

Required.

func setInputValuesWithPropertyList(Any!)

Sets the values for the input keys of the composition from a previously saved property list.

Required.

Relationships