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];
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]