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

- setValue:forInputKey:

Sets the value for an input port of a composition.

Required.

- valueForInputKey:

Returns the value for an input port of a composition.

Required.

- valueForOutputKey:

Returns the value for an output port of a composition.

Required.

- valueForOutputKey:ofType:

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

- inputKeys

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

Required.

- outputKeys

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

Required.

Getting Attributes

- attributes

Returns the attributes of the composition associated with the renderer.

Required.

Storing Arbitrary Information

- userInfo

Returns a mutable dictionary for storing arbitrary information.

Required.

Saving and Restoring Input Values

- propertyListFromInputValues

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

Required.

- setInputValuesWithPropertyList:

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

Required.

Relationships