| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.