Previews or thumbnail images for macOS 10.14 or earlier
Create thumbnail images or previews of common files and custom file types in earlier versions of macOS.
Overview
The Quick Look framework provides functionality to create a miniature representation, or thumbnail, of a file and its contents for display in apps that target macOS 10.14 and earlier.
If your app targets macOS 10.15 and later, use the Quick Look Thumbnailing framework to create thumbnails. Similarly, use a Quick Look preview extension to display previews of files instead of Quick Look generators. To learn more, watch What’s New in File Management and Quick Look.
Topics
Creating thumbnails
QLThumbnailImageCreate(_:_:_:_:)QLThumbnailCreate(_:_:_:_:)QLThumbnailDispatchAsync(_:_:_:)QLThumbnailCancel(_:)QLThumbnailCopyDocumentURL(_:)QLThumbnailCopyImage(_:)QLThumbnailCopyOptions(_:)QLThumbnailGetContentRect(_:)QLThumbnailGetMaximumSize(_:)QLThumbnailGetTypeID()QLThumbnailIsCancelled(_:)
Handling thumbnail requests
QLThumbnailRequestCopyContentUTI(_:)QLThumbnailRequestCopyOptions(_:)QLThumbnailRequestCopyURL(_:)QLThumbnailRequestCreateContext(_:_:_:_:)QLThumbnailRequestFlushContext(_:_:)QLThumbnailRequestGetDocumentObject(_:)QLThumbnailRequestGetGeneratorBundle(_:)QLThumbnailRequestGetMaximumSize(_:)QLThumbnailRequestGetTypeID()QLThumbnailRequestIsCancelled(_:)QLThumbnailRequestSetDocumentObject(_:_:_:)QLThumbnailRequestSetImage(_:_:_:)QLThumbnailRequestSetImageAtURL(_:_:_:)QLThumbnailRequestSetImageWithData(_:_:_:)QLThumbnailRequestSetThumbnailWithDataRepresentation(_:_:_:_:_:)QLThumbnailRequestSetThumbnailWithURLRepresentation(_:_:_:_:_:)
Requesting previews
QLPreviewRequestCopyContentUTI(_:)QLPreviewRequestCopyOptions(_:)QLPreviewRequestCopyURL(_:)QLPreviewRequestCreateContext(_:_:_:_:)QLPreviewRequestCreatePDFContext(_:_:_:_:)QLPreviewRequestFlushContext(_:_:)QLPreviewRequestGetDocumentObject(_:)QLPreviewRequestSetDocumentObject(_:_:_:)QLPreviewRequestGetGeneratorBundle(_:)QLPreviewRequestGetTypeID()QLPreviewRequestIsCancelled(_:)QLPreviewRequestSetDataRepresentation(_:_:_:_:)QLPreviewRequestSetURLRepresentation(_:_:_:_:)
Configuring the appearance of PDF previews
Interfacing with a Quick Look plug-in
Opaque types
Constants
kQLReturnMaskkQLReturnHasMorekQLThumbnailOptionIconModeKeykQLThumbnailOptionScaleFactorKeyQUICKLOOK_VERSION
Deprecated constants
kQLPreviewContentIDSchemekQLPreviewPropertyCursorKeykQLPreviewOptionCursorKeykQLPreviewPropertyAttachmentDataKeykQLPreviewPropertyAttachmentsKeykQLPreviewPropertyBaseBundlePathKeykQLPreviewPropertyDisplayNameKeykQLPreviewPropertyHeightKeykQLPreviewPropertyMIMETypeKeykQLPreviewPropertyPDFStyleKeykQLPreviewPropertyStringEncodingKeykQLPreviewPropertyTextEncodingNameKeykQLPreviewPropertyWidthKeykQLThumbnailPropertyBadgeImageKeykQLThumbnailPropertyBaseBundlePathKeykQLThumbnailPropertyExtensionKey