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: QCCompositionLayer for Manipulating other CALayers



On Jul 17, 2008, at 7:50 PM, Mike Rossetti wrote:

Before I spend a lot of time attempting the following I would appreciate any advice based on your experience:

I've got a drawing-like application where I'd like the user to be able to rotate individual elements of the drawing. When the mouse is hovering over an element I draw a manipulation image (a CALayer) and what I'd like to do is to let the user mouse click in a little rotator control nubby and drag to rotate.

I'm considering using a QCCompositionLayer and pulling in a nice Quartz Composition I put together that behaves (at least in Quartz Composer) as I'd like.

Is this a foolish or a wise direction to take?


There is nothing built in to do this, so you'd have to figure out some way to express your render tree to the QCComposition (or at least part of it) so that it can output the manipulations so you can then apply them to the layer. I don't think this will work very well honestly, and I think it would likely be easier for you to replicate this functionality in code (both in terms of the amount of code to support this and the effort required to make it work correctly).
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >QCCompositionLayer for Manipulating other CALayers (From: Mike Rossetti <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.