---
title: "update(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsalignmentfeedbackfilter/update(with:)"
---

# update(with:)

Informs the feedback filter about a new event.

## Declaration

```swift
func update(with event: NSEvent)
```

## Parameters

- `event`: An event (doc://com.apple.appkit/documentation/AppKit/NSEvent) to be filtered, which matches an event type returned by the doc://com.apple.appkit/documentation/AppKit/NSAlignmentFeedbackFilter/inputEventMask method.

## Discussion

Discussion This method informs the feedback filter about a new event to be filtered, which matches an event type returned by the inputEventMask method. Call the updateWithEvent: method instead of update(withPanRecognizer:) if you are using a tracking loop controller for event tracking.

## See Also

### Related Documentation

- [inputEventMask](appkit/nsalignmentfeedbackfilter/inputeventmask.md)

### Informing the Filter About Events

- [update(withPanRecognizer:)](appkit/nsalignmentfeedbackfilter/update(withpanrecognizer:).md)
