Questions tagged [quicklook]

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

324 questions
4
votes
2 answers

Intercepting PDF Link Clicks using Quicklook Framework (QLPreviewController)

Is PDF Link handling available in Quicklook? I created a prototype, and the QLPreviewControllerDelegate method -(BOOL)previewController:(QLPreviewController *)controller shouldOpenURL:(NSURL *)url forPreviewItem:(id)item never gets called. When I…
4
votes
1 answer

How to use QLPreviewController in the Interface Builder?

Is it possible to use the QLPreviewController in the Interface Builder? I am using storyboards and segues, and it would be lovely to also have a representation for the QLPreviewController.
Arne
  • 2,624
  • 3
  • 24
  • 45
3
votes
0 answers

iOS file formats registration so the Quick Look preview is skipped

Is it possible to register a file format in iOS so that the Quick Look preview is skipped? I'm asking for a binary file format which iOS doesn't support and Quick Look shows just the useless text representation.
catlan
  • 25,100
  • 8
  • 67
  • 78
3
votes
1 answer

Adding QLPreviewController as subview doesn't load PDF

I'm trying to add a QLPreviewController's view as a subview (no--I cannot use a nav controller or modal). It only shows the fabric background of the QLPreviewController. I create one and add it as a subview: QLPreviewController* preview =…
MishieMoo
  • 6,620
  • 2
  • 25
  • 35
3
votes
1 answer

macOS Quick Look Preview Extension not calling -viewDidDisappear

I'm implementing a Quick Look Preview extension on macOS that will preview some unsupported audio types. To be able to stop the audio playback when the user stops previewing, I'm pausing my audio engine in -viewDidDisappear. However, the problem is…
adeasismont
  • 245
  • 1
  • 8
3
votes
2 answers

Set QuickLook window size when previewing with QLPreviewingController.preparePreviewOfFile

I am writing a QuickLook plugin for macOS and everything works, except that I can't set programmatically the window size of the preview. It starts with 800x600, no matter what I do in the XIB and/or in the code, before and/or after the call to the…
mbt
  • 155
  • 10
3
votes
2 answers

How to show quick look of a document in a splitview based iPad app

I have to show quick look of a document in the detailView of a splitview based app. In the master view I have a UITableView with the list of all the files in the Document folder of my app. I'm trying to use the QLPreviewController in the…
Giorgio
  • 31
  • 2
3
votes
0 answers

SwiftUI : QuickLook doesn't not work correctly in iPad device

I tried to using QuickLook framework. For editting PDF, I implemented "previewController(_: editingModeFor: )" in Coordinator. In Xcode(ver 11.6) simulator, quicklook view has pencil markup tool. In Xcode simulator But in my iPad(PadOS 13.6), there…
budlebee
  • 31
  • 2
3
votes
1 answer

Is there a way to restart quicklookd on demand?

Whenever I update my QuickLook thumbnail/preview generator, I need to wait up to a minute for quicklookd to be automatically restarted before I can see the change. $ qlmanage -m ... generators change detected: quicklookd will restart soon Is there…
mixtly87
  • 1,675
  • 15
  • 32
3
votes
1 answer

Placing objects below the ground in AR Quick Look on iOS

I am working on a project that will display objects below the ground using AR Quick Look. However, the AR mode seems to bring everything above the ground based on the bounding box of the objects in the scene. I have tried using the USDZ directly and…
hasandogu
  • 65
  • 1
  • 7
3
votes
1 answer

Using QuickLook to preview PDFs causes allocations to rise indefinitely

I'm using Apple's sample code (verbatim) for Document Interaction using the QuickLook framework/QLPreviewController to display PDFs to users (PDFs are roughly 4-5 MB). When running this code through Instruments, Memory Allocation grows. However, it…
3
votes
3 answers

QLThumbnailGenerator doesn't generate the thumbnail

I tried using QLThumbnailGenerator in Simulator/Device for iOS and iPadOS, but it does not work. I'am able to only obtain a standard empty thumbnail but not the rich icon from my files from documents directory. Some progress with files in sandbox…
Fabiosoft
  • 1,141
  • 14
  • 32
3
votes
1 answer

Get Total Pages Count and Current Page QuickLook

I'm using 'QLPreviewController' to show document file (pdf/doc). Is there any way to get Total number of pages and also current page number? Or any other way to view pdf/doc and also get page counts. Like "9 of 9"- How to get that
Nitesh
  • 1,564
  • 2
  • 26
  • 53
3
votes
4 answers

Swift create URL object from Data (byte array) without writing to disk

How to create a Swift URL object from Data (byte array) without writing the bytes to disk? Background: I need to use a file viewer (such as QuickLook) to view secure files in my iOS (Swift) application but I do not want to write the files to disk. I…
Alec
  • 666
  • 8
  • 23
3
votes
3 answers

Xcode 10 Archives to 'Other Items' instead of 'MacOS Apps'

This was working perfectly - before I upgraded to Xcode 10 that is. My app has a Quicklook and a Spotlight plugin integrated into it. These plugins are built separately and then, in the Build Phase, copied (two Copy Files) with the following…
headbanger
  • 1,038
  • 1
  • 11
  • 32