quicklook

Feedback on my first Objective-C code (a QuickLook plugin)

I've written a fairly simply QuickLook plugin, which displays the files of a .torrent file, The complete code is here on Github, and the main file is torrent.m The reason I'm looking for feedback is it's acting slightly weirdly.. After building/installing the plugin (into ~/Library/QuickLook/), and running.. qlmanage -r; qlmanage -p ~...

How do I get the Mac OS X 'quick look' feature to be more programmer-friendly?

There are numerous text files that are always included in common downloads such as rails plugins: LICENSE, ChangeLog, Rakefile, etc. I know these files are plain-text, but Mac OS X refuses to acknowledge this automatically. If I hit the spacebar in Finder to activate "quick look", the icon becomes huge but the contents of the file are n...

Hiding the type tag/badge/extension in OS X thumbnails generated via Quick Look?

We are writing a Quick Look generator to create custom thumbnails for PDF files - not a preview of the document, but something else. These thumbnails display text that in Finder is currently partially covered with a "PDF" string (Type tag? Type badge? I don't know what it's called officially) and the turned corner effect, as can be seen ...

Which function does Leopard's Finder get the preview icons with the watermark on them?

I already took a look at GetIconRefFromFileInfo() and QLThumbnailImageCreate() but they just doesn't seem to be similar with what I see from the finder, which is a square icon with watermarks on it, e.g. if the file is RTF, it has this greyish watermark below that says RTF or RTFD or PDF... Please help me out on this. Thanks. If the que...

Is there a programmatic way to refresh / reset a preview icon in Finder?

I noticed that while this applescript: tell application "Finder" {...} update itm with necessity {...} end tell refreshes normal Finder icons, on the other hand, it doesn't refresh the Preview icons under Leopard. I'm wondering if there's an AppleScript / Carbon / Cocoa / C way to refresh or reset a preview icon of a Finder file...

Toggling a Button's state based on whether QLPreviewPanel is visible

I'm trying to create a toolbar button whose state is linked to whether the QLPreviewPanel is visible. I've tried adding adding a binding for the visible property of [QLPreviewPanel sharedPreviewPanel] but I'm running into some really odd behaviour where by observeValueForKeyPath:ofObject:change:context: is called twice once with the val...

Mac Quick Look Preview in an NSView or NSImage?

I am looking for a way (public or otherwise) to get an NSView, NSImage, CGImageRef, etc that shows the QuickLook preview for a file. Essentially the equivalent of QLThumbnailImageCreate() but for the preview. The public APIs I can find do not support this. They allow the creation of a thumbnail image or a QLPreviewPanel. The panel do...

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 JavaScript/jQuery does the rest. Similar to the some on the images on this page of Apple.com, s...

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 if I bash my head against it long enough). Does anyone know of a good basic Quick Look G...

How do you use QLPreviewController?

This looks like the best way to so a preview of documents but I can't find any information on how to use it. Am I missing something or is there a better way to do this? http://developer.euro.apple.com/iphone/library/documentation/NetworkingInternet/Reference/QLPreviewController_Class/Reference/Reference.html ...

QuickLook plugin displaying an image and some infos.

Hey there, 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/ . ...

QuickLook Plugin: how does it work when 2 plugins handle the same file type?

If a user has 2 or more quicklook plugins that handle the same kMDItemContentType what happens? Which plugin gets priority to do that actual work? Can that be set programmatically? ...

OSX Quicklook debugging

I am writing a quicklook plugin for an MPO file. The plugin isn't that much of a problem, but the problem is trying to debug it. Apples documentation says that to debug you use qlmanage -r <filename> And I have. However, none of my breakpoints are matched. I assume this is as it hasn't matched my quicklook plugin with the type. Usin...

QuickLook consumer as a delegate from an NSViewController

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 ...

QuickLook base panel

In a quicklook preview panel, there is a line along the bottom that normally displays a 'Full Screen' button enabling full screen. If you open a file with a JPEG or other iPhoto supported image, there is also an 'Add to iPhoto' button here. Looking through the apple docs I see no reference to how to add things to this panel, so I am gue...

e-mail attachment preview using quicklook framework in iphone

How can I preview the email attachment of the supported by quicklook framework. Thanks in advanced. ...