Questions tagged [quicklook]

QuickLook an objective-c framework used in iOS and MacOS application development typically for previews.

324 questions
2
votes
1 answer

How do I show QLPreviewPanel with SwiftUI on macOS?

Trying to figure out how to work with QuickLook in SwiftUI on both iOS and macOS. I suspect that in far future, there will be some unified SwiftUI QL API, but can’t see it in sight yet, so let’s work with what we have… How do I present and configure…
Jaanus
  • 17,688
  • 15
  • 65
  • 110
2
votes
0 answers

Quick Look preview via QLpreviewcontroller in Swiftui

Hi how do you make QuickLook usable in swiftui? You have to implement QLpreviewcontroller with Representable. How do you do this? I have some pdfs that are local and i wanted to use Bundle to locate them and have the pdfs shared to email and text…
CoffeeTree
  • 21
  • 3
2
votes
1 answer

Why does canPreviewItem on QLPreviewController fail for supported file formats (like PDF) on iOS 13?

Checking [QLPreviewController canPreviewItem:item] for supported items, e.g. PDF files, returns false on iOS 13 but not on iOS 12. If you ignore this check and still attempt to display the item using QLPreviewController, you just get a screen…
mattsson
  • 1,329
  • 1
  • 14
  • 30
2
votes
2 answers

How to add a custom button to the Quick Look toolbar in iOS?

I'm currently displaying a PDF file using the Quick Look framework on an iPad via the Modal View Controller. Works great. My problem is that since I'm displaying a PDF file the Quick Look preview is automatically adding a "Print" button. What I…
2
votes
1 answer

Assertion error when using NSCollectionView with QLPreviewView

I am using an NSCollectionView where each NSCollectionViewItem uses a QLPreviewView to get a rendering of a file's content. (This is an attempt at a file browser for images and other previewable files.) Initially, this works fine. However, once…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
2
votes
0 answers

How to check if QLPreview is loaded?

I have QLPreviewView and I need to check if the preview is loaded in n seconds after assigning QLPreviewItem. QLPreviewView and QLPreviewItem don't have any events for loading and any fields to check it, so I came with checking view hierarchy. It…
2
votes
1 answer

How to download from Apple's QuickLook link scheme "x-apple-ql-magic"?

TL;DR - I want to download a .csv and other files from a link, and present a UIActivityViewController. I'm working in an app with lots of WKWebViews. In one of the delegate methods, decidePolicyForNavigationAction:, the available URL is a URL…
ArielSD
  • 829
  • 10
  • 27
2
votes
1 answer

How can I get the thumbnail of a QuickLook Preview Item?

I'm previewing various documents using QLPreviewController. The controller has a "list view" option where it displays the image and title of all of the documents in the controller. How can I get that image so I can display it on a different…
sargturner
  • 540
  • 2
  • 18
2
votes
2 answers

How to know if QuickLook can preview a file type

Is there a way in OS X to find out if QuickLook can (potentially) preview a file, given just its name? My specific case is I'm showing previews for files in a git repository, so they have to be extracted in order to give them to QuickLook. I'd…
Uncommon
  • 3,323
  • 2
  • 18
  • 36
2
votes
1 answer

Cocoa: react to keyDown in QLPreviewPanel

I implemented quick look in my project in the following way in Swift 2 (I'm including this here for reference and because it might help someone else set it up). My NSViewController contains a NSTableView subclass where I implemented keyDown to…
beeb
  • 1,187
  • 11
  • 32
2
votes
1 answer

Package Quicklook plugins for Appstore

I have a bunch of Quicklook plugins and I would like to make them available through the AppStore. As of now, I only have experience with the IOS store and not the Mac store. Is there some kind of standard tutorial on how to create a package that…
El Dude
  • 5,328
  • 11
  • 54
  • 101
2
votes
1 answer

QLPreviewPanel in tableview with issue: "has no controller"

I would like to display the urls from a table view in a QLPreviewPanel but i got this error: [QL] QLError(): -[QLPreviewPanel reloadData] called while the panel has no controller - Fix this or this will raise soon. My table controller already…
2
votes
1 answer

Tutorial for Quick Look Generator not associated with .app

I've checked out Apple's Quick Look Programming Guide: Introduction to Quick Look page in the Mac Dev Center, but as a more of a science programmer rather than an Apple programmer, it is a little over my head (but I could get through it in a weekend…
physicsmichael
  • 4,793
  • 11
  • 35
  • 54
2
votes
2 answers

QuickLook/QLPreviewController(QLPreviewItem) change title in iOS8 in iOS7 works fine

I'm trying to preview my documents/pictures using QuickLook library. Everything was fine when I wanted to open the content in both ios7 & ios8. I want to change the name of the item found in the preview. Everything is fine on iOS7 but when…
Tyrone Prude
  • 362
  • 7
  • 19
2
votes
1 answer

How to put the QLPreviewPanel show as a popover in cocoa?

I would like to make a Popover that can show as a popover like the spotlight search implementation? I can only use traditional way to show a Quicklook window on the centre, but I would like to make something like this: How can I do so? Thanks.
DNB5brims
  • 29,344
  • 50
  • 131
  • 195