Search code examples
objective-cxcodemacosquicklook

QuickLook Preview Panel


I'm looking for some examples on how to use the QuickLook preview feature. I have an URL for a file on the hard drive and want to achieve the same functionality as pressing the 'Space' key in finder on a file or folder and get a preview windows on top of all windows. From what i've read in the quickLook API, QLPreviewRequest returns a preview of the file. Now the question raises, do i have to design my own window/panel for presenting the preview in or is there a way to do that automatically ?


Solution

  • The QLPreviewRequest stuff is for writing a QuickLook plug-in. To present a QuickLook panel from an app, look at the QLPreviewPanel class.