Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Started with QCCompositionLayer



Check out /Developer/Examples/QuartzComposer/Applications/AnimatedCompositionLayer

On Nov 1, 2007, at 4:48 PM, Peter Watling wrote:

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@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

________________________________
Pierre-Olivier Latour - email@hidden
Technologist - Apple, Inc.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Getting Started with QCCompositionLayer (From: Peter Watling <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.