---
title: "setEventForwardingMask(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcview/seteventforwardingmask(_:)"
---

# setEventForwardingMask(_:)

Sets the mask used to filter which types of events are forwarded from the view to the composition during rendering.

## Declaration

```swift
func setEventForwardingMask(_ mask: Int)
```

## Parameters

- `mask`: An event filtering mask. The mask can be a combination of any of the mask constants listed below, or the constant NSAnyEventMask. | | | | | | | | | | | | | | |

## See Also

### Setting and Getting Event Masks

- [eventForwardingMask()](quartz/qcview/eventforwardingmask().md)
