I'm just starting out with some of this cool Leopard stuff, but can't seem to get things working in a layer. It works OK if I put the compositionLayerWithComposition directly into the displayArea' but I have no luck getting it as a child layer. It draws the frame OK, so I can animate the layer itself, just no contents get redrawn. I'm sure there is a simple step. I have tried setting the layoutmanager stuff and needsredraw etc,
thanks.
- (void) applicationDidFinishLaunching:(NSNotification*)notification
{
QCComposition* composition;
composition = [[QCCompositionRepository sharedCompositionRepository] compositionWithIdentifier:@"/defocus"];
QCCompositionLayer *firstLayer=[QCCompositionLayer compositionLayerWithComposition:composition];
CALayer *rootLayer = [CALayer layer];
rootLayer.layoutManager = [CAConstraintLayoutManager layoutManager];
rootLayer.borderWidth=5.0;
rootLayer.cornerRadius=25;
[rootLayer addSublayer:firstLayer];
[displayArea setLayer:rootLayer];
[displayArea setWantsLayer:YES];
}
_______________________________________________