QuickLook an objective-c framework used in iOS and MacOS application development typically for previews.
Questions tagged [quicklook]
324 questions
5
votes
1 answer
Why does QLPreviewRequestSetDataRepresentation on Mavericks return error " CGImageCreate: invalid image size: 0 x 0" for png
My quick look generator used to work properly but is now broken.
Is it a bug or am I doing something wrong?
Here’s my code:
OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
CFURLRef…

wdyp
- 560
- 4
- 16
5
votes
1 answer
Can I write a QuickLook generator for folders in OS X 10.9
I'm playing with QuickLook generators in OS X and it looks like you can't "override" the default preview for folders, although you probably could until you upgraded to SnowLeopard.
I tested it with my simple QuickLook generator using qlmanage and…

martin
- 93,354
- 25
- 191
- 226
4
votes
0 answers
How do I register a new extension with QuickLook in Mac OS 10.7?
I really like the QuickLook feature in the Mac Finder and often use it to look in text files without opening them in an editor. I work with a number of file types that are text files but have extensions that QuickLook doesn't recognize.
How do I…

Tim D
- 1,645
- 1
- 25
- 46
4
votes
2 answers
Are dynamic UTIs stable?
I have files of a format that has no declared UTI, so Launch Services has assigned to it a dynamic UTI (dyn.ah62d4rv4ge81g23wsmw1a5dbte). I have no control over the UTI of these documents.
It also happens that I would like to develop a Quick Look…

zneak
- 134,922
- 42
- 253
- 328
4
votes
0 answers
Can not open USDZ file with QLPreviewController
I am using Quicklook to preview files. There was a issue previously in iOS10.x, showing this Service Connection Interrupted error while repeatedly opening the same file. And this was supposed to be fixed in iOS11. Now in iOS12, I am getting the same…

nOOb iOS
- 1,384
- 2
- 19
- 37
4
votes
3 answers
Couldn't issue file extension for URL
I am stuck and don't know what to do. I want to be able to display PDF's within my application using QuickLook. I have imported my PDF files into my project and am using the code below to display it.
func previewController(_ controller:…

GBSingh
- 416
- 5
- 18
4
votes
3 answers
QLPreviewController not work on iOS11
class ViewController: UIViewController {
let quickLookController = QLPreviewController()
override func viewDidLoad() {
super.viewDidLoad()
quickLookController.dataSource = self
quickLookController.delegate = self
…

Zhihua Shen
- 43
- 3
4
votes
1 answer
QuickLook not displaying pdf only gray screen with file name as title
I have added QuickLook in my app to show docs, pdf etc from Document Directory, It is working fine in simulator but in iPad it's only showing file name as title and gray screen instead of pdf page, don't know whats wrong in there here is the code …

Varun Naharia
- 5,318
- 10
- 50
- 84
4
votes
2 answers
Swift 3 Cocoa: use QuickLook to preview file in OS X
Xcode 8.3.2 I don't find QLPreviewPanel in the command list and I don't know how to do (which command must be used) to display a file preview in a ViewController.

eniware
- 81
- 2
4
votes
1 answer
QuickLook plugin displaying an image and some infos
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/ .

fresskoma
- 25,481
- 10
- 85
- 128
4
votes
1 answer
Finder will not invoke my Quick Look generator for JPEG (public.jpeg) file type
I have implemented a Quick Look generator that can display multiple image types, including JPEG files.
It is being called by the system to render thumbnails and previews for any of the file types that appear in its property list except for one:…

Cary Ripple
- 73
- 6
4
votes
1 answer
How to properly implement a QLPreviewPanel data source keeping in mind security-scoped URLs?
There is a problem with a poorly chosen, non-composable abstractions in Cocoa that arise when one tries to combine a Quick Look preview panel and a security-scoped URLs.
I have a concrete example:
Imagine we are trying to show a preview for some…

Konstantin Pavlikhin
- 700
- 1
- 5
- 19
4
votes
1 answer
How to develop/create a GUI for a QuickLook plugin?
I saw lots of QuickLook plugins (like BetterZip Quick Look Generator) coming together with their nice and tidy interfaces...I tried to design the GUI of my own one using HTML and JQuery, but I don't think that it's a good solution (plus, on top of…

user3559460
- 49
- 8
4
votes
3 answers
Simple JavaScript/jQuery plug-in that 'quicklooks' images
Is there any good JavaScript/jQuery plug-in that will 'quicklook' an image on click?
I want it simple so when you click the image thumbnail it just zooms out to full size.
Ideally it would be set up by just giving said image a class and the…

CafeHey
- 5,699
- 19
- 82
- 145
4
votes
0 answers
QLPreviewController VS UIWebView in terms of render efficience and memory usage
I am working on an iPad project which lets users browse local docs, ppts, pdfs and etc..
I have two options to display these files:
First, I can use UIWebView to display them;
Alternatively, I can use QLPreviewController to display them.
From…

Phineas Lue
- 317
- 4
- 15