Contents

quickLook(with:)

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

Declaration

func quickLook(with event: NSEvent)

Parameters

  • event:

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

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

Responding to Other Kinds of Events