Class

QLPreviewPanel

The QLPreviewPanel class implements the Quick Look preview panel—a user interface object that displays the preview of a list of items.

Declaration

@interface QLPreviewPanel : NSPanel

Overview

Every application has a single shared instance of QLPreviewPanel (see sharedPreviewPanelExists). The preview panel follows the responder chain and adapts to the first responder willing to control it. A preview panel controller provides the content through methods defined in the QLPreviewPanelDataSource protocol.

You can not subclass QLPreviewPanel; you can, however, customize its behavior using a delegate (see delegate and the QLPreviewPanelDelegate informal protocol).

Topics

Accessing the Shared Panel

+ sharedPreviewPanel

Returns the shared Quick Look preview panel instance.

+ sharedPreviewPanelExists

Returns a Boolean value that indicates whether the shared Quick Look preview panel instance has been created.

Accessing the Preview Panel Controller

currentController

The current first responder accepting to control the preview panel.

- updateController

Asks the preview panel to update its current controller.

Managing the Preview Items

dataSource

The preview panel data source.

- reloadData

Asks the preview panel to reload its data from its data source.

- refreshCurrentPreviewItem

Asks the preview panel to recompute the preview of the current preview item.

currentPreviewItemIndex

The index of the current preview item.

currentPreviewItem

The currently previewed item.

displayState

The preview panel’s display state.

The Panel’s Delegate

delegate

The preview panel’s delegate.

Managing Full Screen Mode

- enterFullScreenMode:withOptions:

Instructs the panel to enter full screen mode.

- exitFullScreenModeWithOptions:

Instructs the panel to exit full screen mode.

inFullScreenMode

Indicates whether the panel is in full screen mode.

Relationships

Inherits From