<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAlignmentFeedbackFilter/update(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAlignmentFeedbackFilter(im)updateWithEvent:"
  },
  "title" : "update(with:)"
}
-->

# update(with:)

Informs the feedback filter about a new event.

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

## Parameters

`event`

An event ([`NSEvent`](/documentation/AppKit/NSEvent)) to be filtered, which matches an event type returned by the [`inputEventMask`](/documentation/AppKit/NSAlignmentFeedbackFilter/inputEventMask) method.

## Discussion

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

## See Also

[`inputEventMask`](/documentation/AppKit/NSAlignmentFeedbackFilter/inputEventMask)

Retrieves the event types the filter accepts.



---

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)