If you are using a QCView, use this: 
http://developer.apple.com/technotes/tn2005/tn2146.html

If you are using Core Animation (i.e. QCCompositionLayer), try this blog post:

http://www.cimgf.com/2008/09/24/core-animation-tutorial-core-animation-and-quartz-composer-qccompositionlayer/

and this thread: 
http://www.cocoabuilder.com/archive/message/cocoa/2008/12/24/226305

and these docs: 
http://developer.apple.com/documentation/GraphicsImaging/Reference/QCCompositionLayer_class/Introduction/Introduction.html
http://developer.apple.com/documentation/Cocoa/Reference/QCRenderer_Protocol/Reference/Reference.html#/ /apple_ref/occ/intf/QCCompositionRenderer

Switching the actual composition, though isn't something you should be doing through a composition input. You just re-initialize your QCCompositionLayer with a different .qtz file path or change your QCView's composition path with - (BOOL)loadCompositionFromFile: (NSString *)path.

Best regards,

-Matt


On Jan 7, 2009, at 2:13 AM, Jonathan Selander wrote:

Hi,

I'm creating a simple application that displays a QC and is supposed to be able to switch composition, and to make this happen i first created a qtz with a "Composition Loader", because i thought it could be easy to just switch the input of the CL patch from the program. The problem is that i have no idea how to manipulate QC inputs programatically. I suppose it's fairly easy, could someone give me a hint?

Thanks
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/matt.long%40matthew-long.com

This email sent to matt.l...@matthew-long.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to