WebGL in QuickLook
问题 Is it possible to use WebGL in a quicklook plugin? I followed this tutorial replacing the relevant code in GeneratePreviewForURL.m with OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options) { NSString *_content = [NSString stringWithContentsOfURL:(__bridge NSURL *)url encoding:NSUTF8StringEncoding error:nil]; NSString* path = @"/Users/myusername/Downloads/TodoQL/demo.html"; NSError *error = nil;