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

# quickLook(with:)

Performs a Quick Look on the content at the location specified by the supplied event.

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

## Parameters

`event`

An event object containing the location of the Quick Look content.

## Discussion

The [`NSEvent.EventType.quickLook`](/documentation/AppKit/NSEvent/EventType/quickLook) event type supports this method. The only valid properties of an [`NSEvent.EventType.quickLook`](/documentation/AppKit/NSEvent/EventType/quickLook) event are [`locationInWindow`](/documentation/AppKit/NSEvent/locationInWindow) and [`modifierFlags`](/documentation/AppKit/NSEvent/modifierFlags-swift.property). A Quick Look event does not come in through the normal event mechanism; therefore, there is no corresponding event mask for it, nor should you attempt to look for it in a [`sendEvent(_:)`](/documentation/AppKit/NSWindow/sendEvent(_:)) message or with the [`nextEvent(matching:)`](/documentation/AppKit/NSWindow/nextEvent(matching:)) methods.

If there are no Quick Look items at the location, call super.

`NSResponder` declares but doesn’t implement this method.

## See Also

[`NSEvent.EventType.quickLook`](/documentation/AppKit/NSEvent/EventType/quickLook)

An event that initiates a Quick Look request.



---

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)