#include #include #include #include "MyQuickLook.h" /* ----------------------------------------------------------------------------- Generate a thumbnail for file This function's job is to create thumbnail for designated file as fast as possible ----------------------------------------------------------------------------- */ OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize) { @autoreleasepool { NSURL *urlNS = (__bridge NSURL*)url; //NSString *UTI = (__bridge NSString*)contentTypeUTI; //NSDictionary *optionsNS = (__bridge NSDictionary*)options; return noErr; } } void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail) { // Implement only if supported }