Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 995 Bytes
// GenerateThumbnailForURL.m
// QLWebloc
// Created by David Keegan on 11/26/09.
// Copyright 2009 InScopeApps{+}. All rights reserved.
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
#include <QuickLook/QuickLook.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)
//#warning To complete your generator please implement the function GenerateThumbnailForURL in GenerateThumbnailForURL.c
return noErr;
void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail)
// implement only if supported