Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Nov 8, 2007, 03:08 AM   #1
macrumors 6502a
Join Date: Sep 2005
One Quartz Composer composition, multiple views

Short version:

How to have 1 quartz composition output to multiple views?

Long version:

Has to be compatible with Tiger. I've tried several methods.
  1. Simply multiple QCViews. I'm not sure how these would be kept in sync, as they really would be indipendent renderers.
  2. One QCPatchController, multiple QCViews. Seems to be impossible as I can only create a 1-1 binding for 'patch'.
  3. Multiple QCPatchControllers, multiple QCViews. Problem here is again keeping them in sync, and it seems QCPatchController isn't available programatically. (No public API, no header files.)
  4. Multiple QCRenderers. Here I can have control over the sync, but I don't really know how to set inputs and read ouputs. Is that even possible at all?
It appears the last option is the best, only if I knew how to set inputs..

Any ideas?
Sijmen is offline   0 Reply With Quote
Old May 26, 2009, 08:17 PM   #2
macrumors newbie
Join Date: May 2009
From what I have found, it is not possible to bind multiple QCViews to the same QCPatchController.

You can access the patch controller programatically though. I just create an outlet for it and then do something like

[self setValue:someObject forKeyPath:@"patchController.patch.myOutletName.value"];
patchController being what I named the property that has the IBOutlet to my QCPathController and myOutletName being the name of the outlet (the trailing .value is required).

Hope that helps.

Oh, by the way, you can output the same composition in multiple views using QCRenderers. There is no way to sync them or share data between them built in. You have to create all of that functionality. Not a good solution, but it does work. One of my older apps that does this.

I would recommend pursuing bindings and and object that manages a patch controller for each QCView you want to use or something like that.

Last edited by kainjow; May 26, 2009 at 09:04 PM. Reason: merged posts
samsoffes is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Quartz Composer for dual video? tortex Mac Programming 2 Jun 23, 2013 07:09 PM
Quartz Composer to App in Xcode stefan2861 Mac Programming 0 Jan 9, 2013 07:48 AM
Problems making screensavers in Quartz Composer Sylon Mac Programming 5 Nov 17, 2012 07:43 PM
Safari Quartz Composer Plugin - What is it/Is it okay to Delete? lazer155 Mac Basics and Help 3 Aug 29, 2012 11:32 PM
Screensavers on Quartz Composer no longer available Mac&Me Mac Programming 0 Jun 13, 2012 07:57 AM

Forum Jump

All times are GMT -5. The time now is 01:19 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC