Question

I wrote an app which document type is a bundle. This bundle contains 5 internal files, one of them is a HTML with the document "itself". I would like to make my app Spotlight and Quick Look enabled. Is there an easy way to tell the application "for Spotlight and QuickLook pretend you are the HTML file inside the bundle"? Or I have to write the plugins?

Regards, Kurt

Was it helpful?

Solution

You will have to write plug-ins (for Quick Look, you could try using special symlinks inside your bundle but they won't work with HTML files IIRC).

Your Quick Look plug-in will likely be very simple since you can use QLThumbnailRequestSetThumbnailWithURLRepresentation (tells Quick Look to produce your thumbnail by rendering your HTML file) and QLPreviewRequestSetURLRepresentation (which tells Quick Look to use your HTML file for the preview.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top