| 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 | QCCompositionRepository.h |
The QCCompositionRepository class represents a system-wide centralized repository of built-in and installed Quartz Composer compositions (/Library/Compositions and ~/Library/Compositions). The QCCompositionRepository class cannot be subclassed.
Compositions in the repository are represented by the QCComposition class. You can use the methods of the QCCompositionRepository class to fetch all compositions or only those that meet specific criteria.
Returns the shared instance of the composition repository.
+ (QCCompositionRepository*) sharedCompositionRepository
The shared instance of QCCompositionRepository.
QCCompositionRepository.hReturns an array that contains all compositions currently in the composition repository.
- (NSArray*) allCompositions
An array of QCComposition objects.
QCCompositionRepository.hReturns an array of compositions that match a set of criteria.
- (NSArray*) compositionsWithProtocols:(NSArray*)protocols andAttributes:(NSDictionary*)attributes
The protocols that you want compositions to conform to. Pass nil if you don’t want to filter based on the protocol. 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 to match. Pass nil if you don’t want to filter based on the attributes. For example, you can pass any of these attributes: QCCompositionAttributeNameKey, QCCompositionAttributeDescriptionKey, QCCompositionAttributeCopyrightKey, QCCompositionAttributeBuiltInKey, and QCCompositionAttributeTimeDependentKey.
An array of QCComposition objects that meet the supplied criteria.
QCCompositionRepository.hReturns the composition that corresponds to the identifier.
- (QCComposition*) compositionWithIdentifier:(NSString*)identifier
A string that uniquely identifies the composition to retrieve.
The composition identified by the provided string, or nil if there is no composition with that identifier in the composition repository.
QCCompositionRepository.hPosted whenever the list of compositions in the composition repository is updated.
QCCompositionRepository.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-09)