---
title: "quickLook(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsresponder/quicklook(with:)"
---

# quickLook(with:)

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

## Declaration

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

## Parameters

- `event`: An event object containing the location of the Quick Look content.

## Discussion

Discussion The NSEvent.EventType.quickLook event type supports this method. The only valid properties of an NSEvent.EventType.quickLook event are locationInWindow and modifierFlags. 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(_:) message or with the 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

### Related Documentation

- [NSEvent.EventType.quickLook](appkit/nsevent/eventtype/quicklook.md)

### Responding to Other Kinds of Events

- [cursorUpdate(with:)](appkit/nsresponder/cursorupdate(with:).md)
- [flagsChanged(with:)](appkit/nsresponder/flagschanged(with:).md)
- [tabletPoint(with:)](appkit/nsresponder/tabletpoint(with:).md)
- [tabletProximity(with:)](appkit/nsresponder/tabletproximity(with:).md)
- [helpRequested(_:)](appkit/nsresponder/helprequested(_:).md)
- [scrollWheel(with:)](appkit/nsresponder/scrollwheel(with:).md)
- [changeMode(with:)](appkit/nsresponder/changemode(with:).md)
