QuickLook Constants

No overview available.

Topics

Constants

let kQLPreviewPropertyAttachmentDataKey: CFString!

Gives the attachment data. The value is a CFData object.

let kQLPreviewPropertyAttachmentsKey: CFString!

Gives the list of attachments (or sub-resources). Value is a CFDictionary object.

let kQLPreviewPropertyDisplayNameKey: CFString!

Specifies a custom display name in the preview panel. The default display name is the document title. The value must be encapsulated in a CFString object.

let kQLPreviewPropertyHeightKey: CFString!

Specifies the height (in points) of the preview. Note that this property is a hint; Quick Look might set the height automatically for some types of previews. The value must be encapsulated in a CFNumber object.

let kQLPreviewPropertyMIMETypeKey: CFString!

Gives the web content or attachment mime type. For the main data, the default type is “text/html”. The value is a CFString object.

let kQLPreviewPropertyStringEncodingKey: CFString!

Specifies the string encoding (as an CFStringEncoding value) of the preview data if the native type is plain text. The value must be encapsulated in a CFNumber object.

let kQLPreviewPropertyTextEncodingNameKey: CFString!

Specifies the encoding of the web content or attachment text. For the value, use IANA encodings like “UTF-8”. The value is a CFString object.

let kQLPreviewPropertyWidthKey: CFString!

Specifies the width (in points) of the preview. Note that this property is a hint; Quick Look might set the width automatically for some types of previews. The value must be encapsulated in a CFNumber object.

let kQLThumbnailOptionIconModeKey: CFString!

If the value is kCFBooleanTrue, Quick Look produces the thumbnail as an icon. The image includes all the typical icon decor, such as shadows and a curled corner. If kCFBooleanFalse (the default) is specified, no icon decor is included with the thumbnail image.

let kQLThumbnailOptionScaleFactorKey: CFString!

A key used to specify the user scale factor for the thumbnail. The float value is encapsulated in a CFNumber object. If this option is absent, the default value is 1.0