CocoaDev

Edit AllPages

A QTMovie initalized with a QuartzComposerFile can be customized by modifying the input parameters of the file. Quartz Composer allows you to publish input ports. At the root patch level, select any input port on any patch. If you control click on the port, the popup menu will give you the option to publish the input. After you select the input port to publish, you will be asked to name this input. Now save the file and open this file as an NSMutableDictionary.

The code below shows you how to change an input parameter named “Movie Path” to another source file. The input parameter “Movie Path” is the default name given to an “Image With Movie” patch’s input port. Input parameters are keyed with strings of the input names modified slightly (spaces are replaces with underscores). So an input name of “Movie Path” is keyed as “Movie_Path”.

}