quicklook

How to develop/create a GUI for a QuickLook plugin?

蹲街弑〆低调 提交于 2019-12-03 08:39:56
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 that, Xcode 5.1 doesn't allow you anymore to include or open files from other directories with the <src> attribute). I'll never thank enough Jelle Vandebeeck for opening my mind with his beautiful and helpful post , but unfortunately there's nothing on the internet regarding this topic (I think that there might be something on The Big Nerd Ranch

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

喜欢而已 提交于 2019-12-03 07:43:32
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 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 generic scroll view can also be used for a large number of files. I've used an alert view for an app that

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

你说的曾经没有我的故事 提交于 2019-12-03 01:28:08
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 NavigationBar Same problem with iPhone simulator, iPad simulator, iPhone device and iPad device. You can

QuickLook Plugin Failing with sandboxing error

微笑、不失礼 提交于 2019-12-02 00:06:25
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 errors: 2014-08-05 19:39 :33.008 qlmanage[98314:303] *** CFMessagePort: bootstrap_register(): failed

QuickLook consumer as a delegate from an NSViewController

£可爱£侵袭症+ 提交于 2019-12-01 03:21:08
I am having some problems implementing QuickLook functionality from a table in an NSView . The limited documentation on QuickLook really doesn't help at all. After reading through the Apple Docs (which are geared heavily towards custom generators and plugins), I ended up looking at the QuickLookDownloader sample code . This code is based upon a document-based application, but appears to be the right method for me (after all it is Apple's code and it does work in their project). In my implementation I can get the QuickLook panel to show up just fine, and I can dismiss it just as easy. However,

QuickLook consumer as a delegate from an NSViewController

别说谁变了你拦得住时间么 提交于 2019-11-30 23:31:04
问题 I am having some problems implementing QuickLook functionality from a table in an NSView . The limited documentation on QuickLook really doesn't help at all. After reading through the Apple Docs (which are geared heavily towards custom generators and plugins), I ended up looking at the QuickLookDownloader sample code. This code is based upon a document-based application, but appears to be the right method for me (after all it is Apple's code and it does work in their project). In my

QLPreviewView can not show the quicklook preview in sandbox

旧时模样 提交于 2019-11-30 23:01:23
I use QLPreviewView to show the quicklook preview in the app. Without sandbox, this works well, but once change the app to sandbox, the preview can not show up. I found the error in Console: QuickLookUIHelpe(20786) deny file-read-data XXX. I have used the security-scoped bookmarks & com.apple.security.files.user-selected.read-write to grant access the user home dir, then: [allowedURL startAccessingSecurityScopedResource]; self.myPreiviewItem.myURL = fileURL; self.myQLPreviewView.previewItem = self.myPreiviewItem; [self.myQLPreviewView refreshPreviewItem]; [allowedURL

Quicklook/QLPreviewController delegate methods are not calling in iOS 10 Xcode 8

大兔子大兔子 提交于 2019-11-30 20:16:50
Currently I am testing my current version in iOS10. I am using Xcode 8 beta 6 for testing. Here Quicklook/QLPreviewController delegate methods are not calling. This code set had been worked with XCode 7 and iOS 9.3 versions. I checked this issue in Apple Developer forum. But could not find a answer. Anyone have fixed this issue? (I am using Objective-C) How to use Quicklook/QLPreviewController in XCode 8 ( iOS 10 )? //----------------- SOLUTION for iOS 10 ( previewer as a subview) ------------------- This issue is occurred when you add the the previewer as a subview. Then we are using below

QLPreviewView can not show the quicklook preview in sandbox

蹲街弑〆低调 提交于 2019-11-30 18:04:18
问题 I use QLPreviewView to show the quicklook preview in the app. Without sandbox, this works well, but once change the app to sandbox, the preview can not show up. I found the error in Console: QuickLookUIHelpe(20786) deny file-read-data XXX. I have used the security-scoped bookmarks & com.apple.security.files.user-selected.read-write to grant access the user home dir, then: [allowedURL startAccessingSecurityScopedResource]; self.myPreiviewItem.myURL = fileURL; self.myQLPreviewView.previewItem =

Get QuickLook preview image for file

那年仲夏 提交于 2019-11-30 09:25:08
Is there any way to get the quick look preview image for a file? I'm looking for something like this: NSImage *image = [QuickLookPreviewer quickLookPreviewForFile:path]; Greg See QLThumbnailRequest in the docs: https://developer.apple.com/library/mac/#documentation/UserExperience/Reference/QLThumbnailRequest_Ref/Reference/reference.html NSURL *path = aFileUrl; NSDictionary *options = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:(NSString *)kQLThumbnailOptionIconModeKey]; CGImageRef ref = QLThumbnailImageCreate(kCFAllocatorDefault, (CFURLRef)path, CGSizeMake(600, 800 /