I'm currently writing a QuickLook plugin, and I wondering how I can display an image and some information about that image at the same time, similar to http://www.code-line.com/software/sneakpeekphoto/ .
Asked
Active
Viewed 529 times
1 Answers
3
There is only one way to do so: Convert your content to an already supported one. This means either PDF or HTML. There are two options you have:
- For static information you create a simple PDF preview by rendering a view into a PDF. (Use
-dataWithPDFInsideRect:
method ofNSView
) - For dynamic information create a HTML page with links and so on. QuickLook will then show it. (I think this is also the way your example does it.)
We have not found a way to create complex previews on ur own and had to stick to one of the methods, too. Keynote and Pages do the same -- they convert their presentations to multi-page PDF previews...

Max Seelemann
- 9,344
- 4
- 34
- 40