Conforms to | |
Availability | Available in Mac OS X v10.6 and later. |
Companion guide | |
Declared in | QLPreviewItem.h |
The QLPreviewItem
protocol declares the methods that the Quick Look preview panel (QLPreviewPanel
) uses to access the contents of a given item.
previewItemURL
required property
previewItemTitle
required property
previewItemDisplayState
required property
For more about Objective-C properties, see “Properties” in The Objective-C Programming Language.
The display state for the preview item. This property is optional. (required)
@property (readonly) id previewItemDisplayState;
The display state is an opaque object used by the preview panel. You typically use the QLPreviewPanel
method displayState
to retrieve the display state which you save for later use in the preview item. This way you can preserve the display state when the panel moves from/to an other controller.
@property displayState
(QLPreviewPanel
)QLPreviewItem.h
The preview item's title. This property is optional. (required)
@property (readonly) NSString *previewItemTitle;
If set, this value used as the apparent item title instead of the default item display name.
QLPreviewItem.h
The URL of the item to preview. (required)
@property (readonly) NSURL *previewItemURL;
The URL must be a file URL.
The accessor method should return nil
if the item is not available for preview (the preview panel will display the “Loading” view).
QLPreviewItem.h
Last updated: 2009-07-09