Documentation Archive Developer
Search

QuickLook Changes for Swift

QuickLook

Removed QLGeneratorInterfaceStruct.init(_reserved: UnsafeMutablePointer<Void>, QueryInterface: CFunctionPointer<((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)>, AddRef: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>, Release: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>, GenerateThumbnailForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)>, CancelThumbnailGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)>, GeneratePreviewForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)>, CancelPreviewGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)>)
Removed QLPreviewPDFStyle.value
Added QLGeneratorInterfaceStruct.init(_reserved: UnsafeMutablePointer<Void>, QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!, AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!, Release: ((UnsafeMutablePointer<Void>) -> ULONG)!, GenerateThumbnailForURL: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)!, CancelThumbnailGeneration: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)!, GeneratePreviewForURL: ((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)!, CancelPreviewGeneration: ((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)!)
Added QLPreviewPDFStyle.init(rawValue: UInt32)
Added QLPreviewPDFStyle.rawValue
Declaration
From
struct QLGeneratorInterfaceStruct {
    var _reserved: UnsafeMutablePointer<Void>
    var QueryInterface: CFunctionPointer<((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)>
    var AddRef: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>
    var Release: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>
    var GenerateThumbnailForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)>
    var CancelThumbnailGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)>
    var GeneratePreviewForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)>
    var CancelPreviewGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)>
    init()
    init(_reserved _reserved: UnsafeMutablePointer<Void>, QueryInterface QueryInterface: CFunctionPointer<((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)>, AddRef AddRef: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>, Release Release: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>, GenerateThumbnailForURL GenerateThumbnailForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)>, CancelThumbnailGeneration CancelThumbnailGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)>, GeneratePreviewForURL GeneratePreviewForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)>, CancelPreviewGeneration CancelPreviewGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)>)
}
To
struct QLGeneratorInterfaceStruct {
    var _reserved: UnsafeMutablePointer<Void>
    var QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!
    var AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!
    var Release: ((UnsafeMutablePointer<Void>) -> ULONG)!
    var GenerateThumbnailForURL: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)!
    var CancelThumbnailGeneration: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)!
    var GeneratePreviewForURL: ((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)!
    var CancelPreviewGeneration: ((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)!
    init()
    init(_reserved _reserved: UnsafeMutablePointer<Void>, QueryInterface QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!, AddRef AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!, Release Release: ((UnsafeMutablePointer<Void>) -> ULONG)!, GenerateThumbnailForURL GenerateThumbnailForURL: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)!, CancelThumbnailGeneration CancelThumbnailGeneration: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)!, GeneratePreviewForURL GeneratePreviewForURL: ((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)!, CancelPreviewGeneration CancelPreviewGeneration: ((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)!)
}

Declaration
From
var AddRef: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>
To
var AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!

Declaration
From
var CancelPreviewGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)>
To
var CancelPreviewGeneration: ((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)!

Declaration
From
var CancelThumbnailGeneration: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)>
To
var CancelThumbnailGeneration: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)!

Declaration
From
var GeneratePreviewForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)>
To
var GeneratePreviewForURL: ((UnsafeMutablePointer<Void>, QLPreviewRequest!, CFURL!, CFString!, CFDictionary!) -> OSStatus)!

Declaration
From
var GenerateThumbnailForURL: CFunctionPointer<((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)>
To
var GenerateThumbnailForURL: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!, CFURL!, CFString!, CFDictionary!, CGSize) -> OSStatus)!

Declaration
From
var QueryInterface: CFunctionPointer<((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)>
To
var QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!

Declaration
From
var Release: CFunctionPointer<((UnsafeMutablePointer<Void>) -> ULONG)>
To
var Release: ((UnsafeMutablePointer<Void>) -> ULONG)!

DeclarationProtocols
From
struct QLPreviewPDFStyle {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct QLPreviewPDFStyle : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

Declaration
From
func QLPreviewRequestCreateContext(_ preview: QLPreviewRequest!, _ size: CGSize, _ isBitmap: Boolean, _ properties: CFDictionary!) -> Unmanaged<CGContext>!
To
func QLPreviewRequestCreateContext(_ preview: QLPreviewRequest!, _ size: CGSize, _ isBitmap: Bool, _ properties: CFDictionary!) -> Unmanaged<CGContext>!

Declaration
From
func QLPreviewRequestIsCancelled(_ preview: QLPreviewRequest!) -> Boolean
To
func QLPreviewRequestIsCancelled(_ preview: QLPreviewRequest!) -> Bool

Declaration
From
func QLThumbnailIsCancelled(_ thumbnail: QLThumbnail!) -> Boolean
To
func QLThumbnailIsCancelled(_ thumbnail: QLThumbnail!) -> Bool

Declaration
From
func QLThumbnailRequestCreateContext(_ thumbnail: QLThumbnailRequest!, _ size: CGSize, _ isBitmap: Boolean, _ properties: CFDictionary!) -> Unmanaged<CGContext>!
To
func QLThumbnailRequestCreateContext(_ thumbnail: QLThumbnailRequest!, _ size: CGSize, _ isBitmap: Bool, _ properties: CFDictionary!) -> Unmanaged<CGContext>!

Declaration
From
func QLThumbnailRequestIsCancelled(_ thumbnail: QLThumbnailRequest!) -> Boolean
To
func QLThumbnailRequestIsCancelled(_ thumbnail: QLThumbnailRequest!) -> Bool