I am working on building a Cocoa stand alone application with an imbededd Quartz Composition. This is my first experience with it.
I have already been able to bind a few color wells from Interface Builder to change colors in a linked QC (inputted into a gradient generator). That was a simple test just to make sure I have bindings working and that the setup is functional, it's not part of my intended application, but I put it in there to make sure that at least some form of binding was working. Now I am trying to use an NSPOPupbutton to change the selected index on a Multiplier patch in my QC. In this same QC, I have 4 colors generators to choose from, all of them routed into a multiplier patch with the desired color selected via the index number going into the multiplier. But I just can't seem to get the binding right for the popup to control this. Everything seems correct, and the color wells are working. I added a QC Patch Controller, linked it to my QC, then added a QCview and also linked it to the same QC, and I checked off the "forward all events" window (though I don't think it's needed as I am not doing any mouse or keyboard controls) I've tried to link the popup to my input splitter, but just can't get it working. I run the simulator, and pick a value in the list, but the color stays the same. so the binding is clearly not working. I tried binding in several places after each failure, set the "bind to" to "Patch Controller", the "controller key" to "patch" and the "model key path" to "Color.value" which matches the published input name of my input splitter which is "Color". This is all following the guidelines in the apple documentation for binding to QC applications. If anyone has had success with binding a popup using interface builder into their QC, perhaps you could suggest any gotchas to look out for. I was hoping it would not be necessary to have to try to massage the code, as I am not very fluent in Objective C. Also not sure what is the best method to have index numbers sent into QC from the popup, for example you could have the tag for each item in the list with a different index number and then bind the tags, or use the "content value" or "selected index", etc. _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

