<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCPlugIn/execute(_:atTime:withArguments:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)QCPlugIn(im)execute:atTime:withArguments:"
  },
  "title" : "execute(_:atTime:withArguments:)"
}
-->

# execute(_:atTime:withArguments:)

Performs the processing or rendering tasks appropriate for the custom patch.

```
func execute(_ context: (any QCPlugInContext)!, atTime time: TimeInterval, withArguments arguments: [AnyHashable : Any]!) -> Bool
```

## Parameters

`context`

An opaque object , conforming to the [`QCPlugInContext`](/documentation/Quartz/QCPlugInContext) protocol, that represents the execution context of the `QCPlugIn` object. Do not retain this object or use it outside of the scope of this method.

`time`

The execution interval.

`arguments`

A dictionary of arguments that can be used during execution. See [Execution Arguments](/documentation/Quartz/execution-arguments).

## Return Value

<doc://com.apple.documentation/documentation/Swift/false> indicates the custom patch was not able to execute successfully. In this case, the Quartz Composer engine stops rendering the current frame.

## Discussion

The Quartz Composer engine calls this method each time your custom patch needs to execute. You must implement this method. The method should perform whatever tasks are appropriate for the custom patch, such as:

- reading values from the input ports
- computing output values
- updating the values on the output ports
- rendering to the execution context

For example implementations of this method, see [Quartz Composer Custom Patch Programming Guide](https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/QuartzComposer_Patch_PlugIn_ProgGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004787).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)