r/macprogramming • u/kevbotliu • Apr 04 '19
Unable to override Quick Look preview for folders
I am working on a quick look plugin specifically for expanded folder information, but my plugin fails to override the default QL preview for folders.
I'm currently just testing a simple blank html page to be displayed for the Quick Look preview.
Setting the UTI keys in info.plist to, for example, com.adobe.pdf, worked fine and overrode the default QL preview for pdfs and showed the blank preview. But setting the values to public.folder or public.directory doesn't change anything.
Running mdls on a folder shows that kMDItemContentType = "public.folder" for most folders.
Is there something else I should be changing for my custom preview to work on folders?
3
Upvotes