| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Quartz.framework/Frameworks/QuartzComposer.framework |
| Availability | Available in Mac OS X v10.5 and later. |
| Companion guide | |
| Declared in | QCCompositionPickerView.h |
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:.
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.
– startAnimation:
– stopAnimation:
– isAnimating
– setMaxAnimationFrameRate:
– maxAnimationFrameRate
– setCompositionsFromRepositoryWithProtocol:andAttributes:
– compositions
– setAllowsEmptySelection:
– allowsEmptySelection
– setCompositionAspectRatio:
– compositionAspectRatio
– setSelectedComposition:
– selectedComposition
Retrieves the empty-selection state of the composition picker view.
- (BOOL) allowsEmptySelection
YES if an empty selection is allowed NO otherwise.
QCCompositionPickerView.hReturns the background color of the composition picker view.
- (NSColor*) backgroundColor;
The background color.
QCCompositionPickerView.hRetrieves the aspect ratio used to display compositions in the composition picker view.
- (NSSize) compositionAspectRatio
The aspect ratio.
QCCompositionPickerView.hReturns the list of compositions that are currently in the composition picker view.
- (NSArray*) compositions
An array of QCComposition objects.
QCCompositionPickerView.hRetrieves the composition picker view delegate.
- (id) delegate
The delegate.
QCCompositionPickerView.hReturns whether the composition picker view draws its background.
- (BOOL) drawsBackground;
YES if the composition picker view draws its background; otherwise NO.
QCCompositionPickerView.hReturns whether or not the composition picker view is currently animating its composition.
- (BOOL) isAnimating
YES if a composition is animating in the composition picker view; NO otherwise.
QCCompositionPickerView.hRetrieves the maximum frame rate for animating compositions.
- (float) maxAnimationFrameRate
The maximum frame rate.
QCCompositionPickerView.hRetrieves the number of columns in the composition picker view.
- (NSUInteger) numberOfColumns;
The number of columns.
QCCompositionPickerView.hRetrieves the number of rows in the composition picker view.
- (NSUInteger) numberOfRows;
The number of columns.
QCCompositionPickerView.hClears all previously set default values for composition input parameters.
- (void) resetDefaultInputValues
This method resets the defaults that were set with the method setDefaultValue:forInputKey:.
QCCompositionPickerView.hReturns the composition that is currently selected in the composition picker view.
- (QCComposition*) selectedComposition
A QCComposition object, or nil if a composition is not selected.
QCCompositionPickerView.hSets whether to allow an empty selection in the composition picker view.
- (void) setAllowsEmptySelection:(BOOL)flag
YES to allow an empty selection. The default value is NO.
QCCompositionPickerView.hSets the background color for the composition picker view.
- (void) setBackgroundColor:(NSColor*)aColor;
The color for the background.
QCCompositionPickerView.hSets the aspect ratio used to display compositions in the composition picker view.
- (void) setCompositionAspectRatio:(NSSize)ratio
An aspect ratio.
QCCompositionPickerView.hSets the compositions in the composition picker view to those that match the specified criteria.
- (void) setCompositionsFromRepositoryWithProtocol:(NSString*)protocol andAttributes:(NSDictionary*)attributes
The protocols that you want compositions shown in the picker view to conform to. You can pass any of these protocols: QCCompositionProtocolAnimation, QCCompositionProtocolImageProducer, QCCompositionProtocolImageFilter, QCCompositionProtocolImageCompositor, QCCompositionProtocolImageTransition, and QCCompositionProtocolScreenSaverRSS.
A dictionary that contains the attributes, and their associated values, that you want compositions in the picker view to match. For example, you can pass: QCCompositionAttributeNameKey, QCCompositionAttributeDescriptionKey, QCCompositionAttributeCopyrightKey, QCCompositionAttributeBuiltInKey, and QCCompositionAttributeTimeDependentKey. Pass nil if you don’t want to filter based on the attributes.
QCCompositionPickerView.hSets the default value to use for a composition input parameter.
- (void) setDefaultValue:(id)value forInputKey:(NSString*)key
This default value overrides any initial value existing for composition input parameters with this key. Pass nil to clear the default value.
The input parameter key whose default value you want to set.
QCCompositionPickerView.hSets the composition picker view delegate.
- (void) setDelegate:(id)delegate
The delegate to set.
QCCompositionPickerView.hSets whether the composition picker view draws its background.
- (void) setDrawsBackground:(BOOL)flag;
The background drawing state. Pass YES if the composition picker view draws its background.
QCCompositionPickerView.hSets the maximum frame rate for animating compositions.
- (void) setMaxAnimationFrameRate:(float)maxFPS
A frame rate in frames per second. Pass 0.0 to specify no limit to the maximum value.
QCCompositionPickerView.hSets the number of columns in the composition picker view.
- (void) setNumberOfColumns:(NSUInteger)columns;
The number of columns.
QCCompositionPickerView.hSets the number of rows in the composition picker view.
- (void) setNumberOfRows:(NSUInteger)rows;
The number of rows.
QCCompositionPickerView.hSets a composition as selected in the composition picker view.
- (void) setSelectedComposition:(QCComposition*)composition
The composition to select. Pass nil if you don’t want to select a composition. The behavior is undefined if you pass a composition that is not in the list of compositions that are currently in the composition picker view.
QCCompositionPickerView.hEnables the display of composition names in the composition picker view.
- (void) setShowsCompositionNames:(BOOL)flag
YES specifies to show compositions name. The default value is NO.
QCCompositionPickerView.hRetrieves whether composition names can be shown in the composition picker view.
- (BOOL) showsCompositionNames
YES if the display of names is enabled; otherwise NO.
QCCompositionPickerView.hStarts animating the composition in the composition picker view.
- (void) startAnimation:(id)sender
The object initiating the animation.
QCCompositionPickerView.hStops animating the composition that is currently animating in the composition picker view.
- (void) stopAnimation:(id)sender
The object stopping the animation.
QCCompositionPickerView.hPosted when the user selects a composition in the picker view.
QCCompositionPickerView.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-09)