Class

QCCompositionPickerView

The QCCompositionPickerView class allows users to browse compositions that are in the Quartz Composer composition repository, and to preview them. You can set the default input parameters for a composition preview by using the method setDefaultValue:forInputKey:.

Declaration

@interface QCCompositionPickerView : NSView

Overview

Note that the composition picker view does not automatically refresh its content when the composition repository is updated. It’s your responsibility to perform any necessary updating.

Topics

Setting and Getting the Background Color

- setBackgroundColor:

Sets the background color for the composition picker view.

- backgroundColor

Returns the background color of the composition picker view.

Managing Background Drawing

- setDrawsBackground:

Sets whether the composition picker view draws its background.

- drawsBackground

Returns whether the composition picker view draws its background.

Setting Composition Input Parameters

- setDefaultValue:forInputKey:

Sets the default value to use for a composition input parameter.

- resetDefaultInputValues

Clears all previously set default values for composition input parameters.

Managing Animation

- startAnimation:

Starts animating the composition in the composition picker view.

- stopAnimation:

Stops animating the composition that is currently animating in the composition picker view.

- isAnimating

Returns whether or not the composition picker view is currently animating its composition.

- setMaxAnimationFrameRate:

Sets the maximum frame rate for animating compositions.

- maxAnimationFrameRate

Retrieves the maximum frame rate for animating compositions.

Controlling Display of Composition Names

- setShowsCompositionNames:

Enables the display of composition names in the composition picker view.

- showsCompositionNames

Retrieves whether composition names can be shown in the composition picker view.

Setting and Retrieving the View Delegate

- setDelegate:

Sets the composition picker view delegate.

- delegate

Retrieves the composition picker view delegate.

Managing the Composition Picker View

- setCompositionsFromRepositoryWithProtocol:andAttributes:

Sets the compositions in the composition picker view to those that match the specified criteria.

- compositions

Returns the list of compositions that are currently in the composition picker view.

- setAllowsEmptySelection:

Sets whether to allow an empty selection in the composition picker view.

- allowsEmptySelection

Retrieves the empty-selection state of the composition picker view.

- setCompositionAspectRatio:

Sets the aspect ratio used to display compositions in the composition picker view.

- compositionAspectRatio

Retrieves the aspect ratio used to display compositions in the composition picker view.

- setSelectedComposition:

Sets a composition as selected in the composition picker view.

- selectedComposition

Returns the composition that is currently selected in the composition picker view.

Working with Columns and Rows

- setNumberOfColumns:

Sets the number of columns in the composition picker view.

- numberOfColumns

Retrieves the number of columns in the composition picker view.

- setNumberOfRows:

Sets the number of rows in the composition picker view.

- numberOfRows

Retrieves the number of rows in the composition picker view.

Notifications

QCCompositionPickerViewDidSelectCompositionNotification

Posted when the user selects a composition in the picker view.

Relationships

Inherits From