Class

QLPreviewView

A Quick Look preview of an item that you can embed into your view hierarchy.

Declaration

class QLPreviewView : NSView

Topics

Initializing a QLPreviewView

init!(frame: NSRect, style: QLPreviewViewStyle)

Initializes a QLPreviewView object with a specific frame and style.

init!(frame: NSRect)

Initializes a QLPreviewView object with a specific frame.

Displaying a Preview

func refreshPreviewItem()

Updates the preview to display the currently previewed item.

var displayState: Any!

The current display state of the previewItem.

var autostarts: Bool

A Boolean value that determines whether the preview starts automatically.

Closing a Preview

var shouldCloseWithWindow: Bool

A Boolean value that determines whether the preview should close when its window closes.

func close()

Closes the receiver, releasing the current previewItem.

Constants

enum QLPreviewViewStyle

Styles for a QLPreviewView object.