Contents

setValue(_:forOutputKey:)

Sets the value of an output port.

Declaration

func setValue(_ value: Any!, forOutputKey key: String!) -> Bool

Parameters

  • value:

    The value to associate with the specified key.

  • key:

    The key associated with the output port whose value you want to set.

Return Value

true if successful; false if called outside of the execute(_:atTime:withArguments:) method.

Discussion

You call this method from within your execute(_:atTime:withArguments:) method to set the output values of your custom patch.

See Also

Getting and Setting Port Values