Documentation Archive Developer
Search

QuickLook Changes for Swift

QuickLook

Removed 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)!)
Declaration
From
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)!)
}
To
struct QLGeneratorInterfaceStruct {
    var _reserved: UnsafeMutableRawPointer!
    var QueryInterface: ((UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!
    var AddRef: ((UnsafeMutableRawPointer?) -> ULONG)!
    var Release: ((UnsafeMutableRawPointer?) -> ULONG)!
    var GenerateThumbnailForURL: ((UnsafeMutableRawPointer?, QLThumbnailRequest?, CFURL?, CFString?, CFDictionary?, CGSize) -> OSStatus)!
    var CancelThumbnailGeneration: ((UnsafeMutableRawPointer?, QLThumbnailRequest?) -> Swift.Void)!
    var GeneratePreviewForURL: ((UnsafeMutableRawPointer?, QLPreviewRequest?, CFURL?, CFString?, CFDictionary?) -> OSStatus)!
    var CancelPreviewGeneration: ((UnsafeMutableRawPointer?, QLPreviewRequest?) -> Swift.Void)!
    init()
    init(_reserved _reserved: UnsafeMutableRawPointer!, QueryInterface QueryInterface: (@escaping (UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!, AddRef AddRef: (@escaping (UnsafeMutableRawPointer?) -> ULONG)!, Release Release: (@escaping (UnsafeMutableRawPointer?) -> ULONG)!, GenerateThumbnailForURL GenerateThumbnailForURL: (@escaping (UnsafeMutableRawPointer?, QLThumbnailRequest?, CFURL?, CFString?, CFDictionary?, CGSize) -> OSStatus)!, CancelThumbnailGeneration CancelThumbnailGeneration: (@escaping (UnsafeMutableRawPointer?, QLThumbnailRequest?) -> Swift.Void)!, GeneratePreviewForURL GeneratePreviewForURL: (@escaping (UnsafeMutableRawPointer?, QLPreviewRequest?, CFURL?, CFString?, CFDictionary?) -> OSStatus)!, CancelPreviewGeneration CancelPreviewGeneration: (@escaping (UnsafeMutableRawPointer?, QLPreviewRequest?) -> Swift.Void)!)
}

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

Declaration
From
var CancelPreviewGeneration: ((UnsafeMutablePointer<Void>, QLPreviewRequest!) -> Void)!
To
var CancelPreviewGeneration: ((UnsafeMutableRawPointer?, QLPreviewRequest?) -> Swift.Void)!

Declaration
From
var CancelThumbnailGeneration: ((UnsafeMutablePointer<Void>, QLThumbnailRequest!) -> Void)!
To
var CancelThumbnailGeneration: ((UnsafeMutableRawPointer?, QLThumbnailRequest?) -> Swift.Void)!

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

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

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

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

Declaration
From
func QLPreviewRequestCreatePDFContext(_ preview: QLPreviewRequest!, _ mediaBox: UnsafePointer<CGRect>, _ auxiliaryInfo: CFDictionary!, _ properties: CFDictionary!) -> Unmanaged<CGContext>!
To
func QLPreviewRequestCreatePDFContext(_ preview: QLPreviewRequest!, _ mediaBox: UnsafePointer<CGRect>!, _ auxiliaryInfo: CFDictionary!, _ properties: CFDictionary!) -> Unmanaged<CGContext>!

Declaration
From
func QLPreviewRequestGetDocumentObject(_ preview: QLPreviewRequest!) -> UnsafePointer<Void>
To
func QLPreviewRequestGetDocumentObject(_ preview: QLPreviewRequest!) -> UnsafeRawPointer!

Declaration
From
func QLPreviewRequestSetDocumentObject(_ preview: QLPreviewRequest!, _ object: UnsafePointer<Void>, _ callbacks: UnsafePointer<CFArrayCallBacks>)
To
func QLPreviewRequestSetDocumentObject(_ preview: QLPreviewRequest!, _ object: UnsafeRawPointer!, _ callbacks: UnsafePointer<CFArrayCallBacks>!)

Declaration
From
func QLThumbnailDispatchAsync(_ thumbnail: QLThumbnail!, _ queue: dispatch_queue_t!, _ completion: dispatch_block_t!)
To
func QLThumbnailDispatchAsync(_ thumbnail: QLThumbnail!, _ queue: DispatchQueue!, _ completion: (@escaping () -> Swift.Void)!)

Declaration
From
func QLThumbnailRequestGetDocumentObject(_ thumbnail: QLThumbnailRequest!) -> UnsafePointer<Void>
To
func QLThumbnailRequestGetDocumentObject(_ thumbnail: QLThumbnailRequest!) -> UnsafeRawPointer!

Declaration
From
func QLThumbnailRequestSetDocumentObject(_ thumbnail: QLThumbnailRequest!, _ object: UnsafePointer<Void>, _ callbacks: UnsafePointer<CFArrayCallBacks>)
To
func QLThumbnailRequestSetDocumentObject(_ thumbnail: QLThumbnailRequest!, _ object: UnsafeRawPointer!, _ callbacks: UnsafePointer<CFArrayCallBacks>!)