Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 8, 2007, 03:08 AM   #1
Sijmen
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?
Thanks
Sijmen is offline   0 Reply With Quote
Old May 26, 2009, 08:17 PM   #2
samsoffes
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

Code:
[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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Versions Quartz Composer Animation? Macopotamus Mac OS X 10.7 Lion 1 Sep 2, 2011 01:34 PM
How would I access a label on another view controller? KiranPanesar iPhone/iPad Programming 11 Apr 19, 2011 10:15 AM
Quartz Composer compositions in Web Browser mirekrusin Mac Applications and Mac App Store 0 Apr 26, 2010 04:58 PM
Quartz Composer compositions from Safari mirekrusin Mac Programming 1 Jan 22, 2010 02:07 PM
Multiple views on one view youPhone iPhone/iPad Programming 4 Sep 8, 2008 01:28 PM


All times are GMT -5. The time now is 04:21 PM.

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

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