---
title: "run(forKey:object:arguments:)"
framework: quartzcore
role: symbol
role_heading: Instance Method
path: "quartzcore/caaction/run(forkey:object:arguments:)"
---

# run(forKey:object:arguments:)

Called to trigger the action specified by the identifier.

## Declaration

```swift
func run(forKey event: String, object anObject: Any, arguments dict: [AnyHashable : Any]?)
```

## Parameters

- `event`: The identifier of the action. The identifier may be a key or key path relative to anObject, an arbitrary external action, or one of the action identifiers defined in doc://com.apple.quartzcore/documentation/QuartzCore/CALayer.
- `anObject`: The layer on which the action should occur.
- `dict`: A dictionary containing parameters associated with this event. May be nil.

## See Also

### Related Documentation

- [Core Animation Programming Guide](apple-archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction.md)
