Contents

QCView

The QCView class is a custom NSView class that loads, plays, and controls Quartz Composer compositions. It is an autonomous view that is driven by an internal timer running on the main thread.

Declaration

class QCView

Overview

The view can be set to render a composition automatically when it is placed onscreen. The view stops rendering when it is placed offscreen. When not rendering, the view is filled with the current erase color. The rendered composition automatically synchronizes to the vertical retrace of the monitor.

When you archive a QCView object, it saves the composition that’s loaded at the time the view is archived.

If you want to perform custom operations while a composition is rendering such as setting input parameters or drawing OpenGL content, you need to subclass QCView and implement the render(atTime:arguments:) method.

Topics

Performing Custom Operations During Rendering

Loading a Composition

Managing the Erase Color

Setting and Getting Event Masks

Setting and Getting the Maximum Frame Rate

Managing Rendering

Using Interface Builder

Taking Snapshot Images

Working With OpenGL

See Also

Classes