A Quick Look preview of an item that you can embed into your view hierarchy.
SDK
- macOS 10.6+
Framework
- Quartz
Declaration
class QLPreviewView : NSView
A Quick Look preview of an item that you can embed into your view hierarchy.
SDK
Framework
class QLPreviewView : NSView
init!(frame: NSRect, style: QLPreview View Style)
Initializes a QLPreview
object with a specific frame and style.
init!(frame: NSRect)
Initializes a QLPreview
object with a specific frame.
var preview Item: QLPreview Item!
The item to preview.
func refresh Preview Item()
Updates the preview to display the currently previewed item.
var display State: Any!
The current display state of the preview
.
var autostarts: Bool
A Boolean value that determines whether the preview starts automatically.
var should Close With Window: Bool
A Boolean value that determines whether the preview should close when its window closes.
func close()
Closes the receiver, releasing the current preview
.
enum QLPreview View Style
Styles for a QLPreview
object.