Contents

Creating, copying, and disposing of atom containers

Manage atoms in atom containers.

Overview

Before you can add atoms to an atom container, you must first create the container by calling QTNewAtomContainer. The code sample shown in the following calls QTNewAtomContainer to create an atom container.

QTAtomContainer spriteData;
OSErr err
// Create an atom container to hold a sprite’s data.
err=QTNewAtomContainer (&spriteData);

When you have finished using an atom container, dispose of it by calling the QTDisposeAtomContainer function. The sample code shown in the following listing calls QTDisposeAtomContainer to dispose of the spriteData atom container.

if (spriteData)
    QTDisposeAtomContainer (spriteData);

Topics

Managing atoms

See Also

Building in QuickTime