I am trying to configure a QCCompositionParameterView via the pickerView selection delegate method:
CGColorSpaceRef colorspace;
@try {
/* Create a processing-only QCRenderer that wraps the selected composition if any - We use the main display colorspace as we render on screen */
[_renderer release];
if(composition) {
colorspace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
_renderer = [[QCRenderer alloc] initWithComposition:composition colorSpace:colorspace];
if(_renderer == nil) {
NSLog(@"Cannot create QCRenderer");
[NSApp terminate:nil];
}
}
else
_renderer = nil;
/* Make sure the QCCompositionParameterView targets the QCRenderer */
[parameterView setCompositionRenderer:_renderer];
This fails with the following error
Exception when loading parameter view: -[QCRenderer initWithComposition:colorSpace:]: Inconsistent state
Any thougths?
Ben
_______________________________________________