The next step is accessing the published *outputs* of the composition. Mine has two of them: the two coordinates of the mouse position, call it "X" and "Y". The obvious way is to bind something (eg the value of a NSTextField) to the patch controller, with the keypath "patch.X.value". But this doesn't work...

I just did something quite similar in code and it seems to work just fine. I tried KVO and bindings (tried it in code and in IB) and both worked as expected. I used the keypath "path.portname.value" and it doesn't seem to care about whether it is an input or an output port.

Maybe the problem lies somewhere else entirely? Does your mouse location really get into the Quartz Composition? Maybe try it with something that does not depend on the forwarding of mouse or keyboard events.

Marco
_______________________________________________
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]

Reply via email to