The mouse and keyboard events are forwarded directly to the
composition through an internal mechanism and the Keyboard and Mouse
patches make them available. You don't need to publish anything.
However, when your app starts, if the QCView is not the focused view,
then it won't receive the user events. You might have to click in it
first, or ensure it has the focus programmatically.
On Jan 2, 2007, at 10:49 AM, Mark Burton wrote:
Thanks Pierre. I've always had that setting checked though. Is
there something else with the way the keyboard patch needs to have
its ports published? I've not connected anything inside IB for
these keys, should they simply be passed on anyway (when "Forward
all Events" is checked)?
Thanks
Mark
On 2 Jan 2007, at 18:33, Pierre-Olivier Latour wrote:
In Interface Builder, make sure to check "Forward All Events" in
the QCView inspector settings
<pastedGraphic.png>
On Jan 2, 2007, at 10:29 AM, Mark Burton wrote:
This is a bit of newbie question I'm afraid:
I have a composition which contains a keyboard control macro.
Inside Quartz Composer the keyboard commands work fine. However I
can't figure out which bits I need to publish or how to patch
them so I can use the same keyboard commands when the composition
is used in a small cocoa app.
I have lots of other published ports which are mostly operated
via sliders and tick boxes in the external app (via a
QCPatchController), but I can't get the keyboard commands to work
outside of Quartz Composer.
Any ideas,
Thanks
Mark
________________________________________________________
Pierre-Olivier Latour email@hidden
Quartz Composer Team Apple Computer, Inc.