I have code that makes a preview of 'any' file, it runs threaded in a Cocoa desktop app.
CFURLRef url = CFURLCreateWithFileSystemPath(nil, (CFStringRef) inFilePath, kCFURLPOSIXPathStyle, false);
if (url)
{
cgImage = QLThumbnailImageCreate(nil, url, inSize, (__bridge CFDictionaryRef) options);
CFRelease(url);
}
On 10.8 (and I think 10.9.0 and 1) I would get a real render - equivalent to pressing the space bar in the finder, but now I only get piddly icons or NULL.
In other words if you press spacebar in the Finder on 10.9 for a .m file, you see the files contents, but QLThumbnailImageCreate returns NULL.
Anyone else noticed this?