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.h
Returns the background color of the composition picker view.
- (NSColor*) backgroundColor;
The background color.
QCCompositionPickerView.h
Retrieves the aspect ratio used to display compositions in the composition picker view.
- (NSSize) compositionAspectRatio
The aspect ratio.
QCCompositionPickerView.h
Returns the list of compositions that are currently in the composition picker view.
- (NSArray*) compositions
An array of QCComposition
objects.
QCCompositionPickerView.h
Retrieves the composition picker view delegate.
- (id) delegate
The delegate.
QCCompositionPickerView.h
Returns whether the composition picker view draws its background.
- (BOOL) drawsBackground;
YES
if the composition picker view draws its background; otherwise NO
.
QCCompositionPickerView.h
Returns 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.h
Retrieves the maximum frame rate for animating compositions.
- (float) maxAnimationFrameRate
The maximum frame rate.
QCCompositionPickerView.h
Retrieves the number of columns in the composition picker view.
- (NSUInteger) numberOfColumns;
The number of columns.
QCCompositionPickerView.h
Retrieves the number of rows in the composition picker view.
- (NSUInteger) numberOfRows;
The number of columns.
QCCompositionPickerView.h
Clears 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.h
Returns 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.h
Sets 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.h
Sets the background color for the composition picker view.
- (void) setBackgroundColor:(NSColor*)aColor;
The color for the background.
QCCompositionPickerView.h
Sets the aspect ratio used to display compositions in the composition picker view.
- (void) setCompositionAspectRatio:(NSSize)ratio
An aspect ratio.
QCCompositionPickerView.h
Sets 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.h
Sets 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.h
Sets the composition picker view delegate.
- (void) setDelegate:(id)delegate
The delegate to set.
QCCompositionPickerView.h
Sets 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.h
Sets 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.h
Sets the number of columns in the composition picker view.
- (void) setNumberOfColumns:(NSUInteger)columns;
The number of columns.
QCCompositionPickerView.h
Sets the number of rows in the composition picker view.
- (void) setNumberOfRows:(NSUInteger)rows;
The number of rows.
QCCompositionPickerView.h
Sets 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.h
Enables 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.h
Retrieves whether composition names can be shown in the composition picker view.
- (BOOL) showsCompositionNames
YES
if the display of names is enabled; otherwise NO
.
QCCompositionPickerView.h
Starts animating the composition in the composition picker view.
- (void) startAnimation:(id)sender
The object initiating the animation.
QCCompositionPickerView.h
Stops animating the composition that is currently animating in the composition picker view.
- (void) stopAnimation:(id)sender
The object stopping the animation.
QCCompositionPickerView.h
Posted when the user selects a composition in the picker view.
QCCompositionPickerView.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-09)