How to use QLPreviewPanel?

How to use QLPreviewPanel? I know that before this was not a public API, but 10.6. How can I use it to show a file preview in a standard QuickLook panel?

+5
source share
2 answers

Check out the QuickLookDownloader code. It will guide you through a couple of things you need to do to include it QLPreviewPanelin your code. Some of them include:

  • Matching your objects with the protocol QLPreviewItem- this tells Quick Look where you can find the file you want to view (and you are viewing files - you cannot transfer user data).
  • QLPreviewPanel ( NSTableView, ).
  • QLPreviewPanelController ( ).
  • .

1-3 MyDocument . AppDelegate. DownloadsTableView, QLPreviewPanel , a la Finder.

+8

. , Apple Docs. → animgifqlgen

HTML- Enriched, , , , .

, , . html , html QL. html- , bgcolor, src...

, , html-. html NSMutableString appendString appendFormat:

.

UTI plist () /Users/username/Library/QuickLook/.

, .

: QuickLook, , . . , Quick Look Helper Activity Monitor. , , , , . ( , - , ;-))

0

All Articles