quicklook

Use Quick Look inside a Swift cocoa application to preview audio files

淺唱寂寞╮ 提交于 2020-01-02 22:27:13
问题 My application lists audio files (MP3) in a NSTableView, with the object for each row containing a path to the audio file. I would like to be able to preview an audio file with Quick Look (like in Finder) when hitting the space bar while one row is selected. By looking at related questions and answers, I noticed that the API seems to be private and so it's been very hard to find recent and reliable information or documentation about this, let alone in Swift. What's more, most examples I found

Quicklook/QLPreviewController, some problems with iOS 8 but everything works with iOS 7.1

冷暖自知 提交于 2019-12-31 16:09:26
问题 I'm working with QuickLook to view PDF Files. It's working properly in iOS 7.1 but some problems happens with iOS 8 GM. Pictures are better than words, I wanna show you problems : iOS 7.1 Xcode 6 (works fine) Transition with QuickLook (no fail) Page scroll, the navigationBar hides well -------------------------------------------------------------------------- And now, iOS 8 GM with Xcode 6 Transition with QuickLook... Page scroll, the navigationBar doesn't hide, page indicator hides behind

How to manage memory within a QLPreviewController

大城市里の小女人 提交于 2019-12-24 13:58:43
问题 We are currently using a QLPreviewController to load a collection of PDFs. The size of the collection can range from 16, 95, or even 1600+ PDFs. Due to the data source of the PreviewController containing multiple items we now have the ability to swipe left or right within the preview modal and load the next PDF in the list. This functionality has introduced an issue where a gray screen appears within the controller at various locations within the collection. It may occur on the 3rd item, 50th

QLPreviewPanel in tableview with issue: “has no controller”

我怕爱的太早我们不能终老 提交于 2019-12-24 04:51:59
问题 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 conform to this two protocols : QLPreviewPanelDataSource, QLPreviewPanelDelegate. How can i set the controller of [QLPreviewPanel sharedPreviewPanel] as my table controller? - (void)didPressSpacebarForTableView:(NSTableView *)tableView { NSLog(@"Spacebar

QLPreviewPanel in tableview with issue: “has no controller”

半城伤御伤魂 提交于 2019-12-24 04:51:52
问题 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 conform to this two protocols : QLPreviewPanelDataSource, QLPreviewPanelDelegate. How can i set the controller of [QLPreviewPanel sharedPreviewPanel] as my table controller? - (void)didPressSpacebarForTableView:(NSTableView *)tableView { NSLog(@"Spacebar

QLPreviewController: quicklookd failing to load

独自空忆成欢 提交于 2019-12-23 19:13:16
问题 I've got some simple code showing a simple PDF, using QLPreviewController. It works great in the simulator, and in a very simple app. In the app I actually want it to work in, it fails on the device. The device shows the preview view, but in place of the PDF it simply shows the text "simple.pdf, Portable Document Format (PDF)" and the size of the file ("301KB" in this case). Interestingly, the log emits "Failed to load quicklookd with error : The operation couldn’t be completed. (Cocoa error

Linking Frameworks into QuickLook plugins

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 09:02:54
问题 I am trying to write a QuickLook generator. For this, I need to link against a framework I created. However, as soon as I link against said framework, qlmanage refuses to load my plugin by telling me: [ERROR] Can't load plug-in at /path/to/my-ql.qlgenerator: The bundle “my-ql” couldn’t be loaded because it is damaged or missing necessary resources. I have read all the relevant tutorials on Linking, Frameworks and QuickLook but found no answer. Things I have found out/ruled out so far

QuickLook class not working

六月ゝ 毕业季﹏ 提交于 2019-12-23 04:47:23
问题 I have this class which works fine import UIKit import QuickLook class ViewController: UITableViewController, QLPreviewControllerDataSource { var urlList : [NSURL]? = { if let fileURL1 = NSBundle.mainBundle().URLForResource("Essay", withExtension:"txt"), let fileURL2 = NSBundle.mainBundle().URLForResource("Image", withExtension:"jpg"), let fileURL3 = NSBundle.mainBundle().URLForResource("Letter", withExtension:"docx"), let fileURL4 = NSBundle.mainBundle().URLForResource("Newsletter",

iOS - QuickLook - How to open an object in QuickLook without a UIScrollView

╄→尐↘猪︶ㄣ 提交于 2019-12-21 01:06:36
问题 Could anyone point me towards a resource which uses QuickLook to open a (preferably but not necessarily a pdf) file without using a UITableView? I do have this example of using QuickLook but it uses a listview which I need to get away from. http://robsprogramknowledge.blogspot.com/2011/02/quick-look-for-ios_21.html 回答1: I'm not sure how you plan to design your UI to open a file. I've used a few different ways, so I'll toss out some ideas. A UITableView is ideal for large amounts of files. A

QuickLook Plugin Failing with sandboxing error

廉价感情. 提交于 2019-12-20 01:58:23
问题 I have a QLPlugin that resides in my app's bundle. It worked on Mountain Lion and earlier, but now on Mavericks, only the thumbnail generator works. The preview generator fails with a sandboxing error in Console: 8/5/14 7:41:34.000 PM kernel[0]: Sandbox: QuickLookSatelli(98371) deny file-read-data <path to file> Both the thumbnail and preview generators log this error, but a thumbnail still gets generated, whereas a preview does not. It runs (via qlmanage ) in Xcode, logging some semi-related