Re: Quick Look with native types?
Re: Quick Look with native types?
- Subject: Re: Quick Look with native types?
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Thu, 27 Nov 2008 23:07:07 -0500
mmm just in case I wasn't clear (I realize I might be looking at this
from the wrong angle): I would want to use "Quick Look" to show
preview of images in my app, I dont want to write a Quick Look plugin
so that my custom document type can be previewed in the finder or
anythign like that...
What I want to do is basically what Mail.app does with
attachment...There's the save button, and next to it there's a little
Quick Look button that will show the attachment in a quick look
window... I would like to do that in my app, with bitmap images that
are already on the file system...
On 27-Nov-08, at 11:02 PM, Jean-Nicolas Jolivet wrote:
That's not really what I'm getting from Quick Look's programming
guide... in the very first paragraph it says:
"For documents of common content types—notably HTML, RTF, plain
text, TIFF, PNG, JPEG, PDF, and QuickTime movies—this support is
automatic. However, applications with documents that are of less
common or even private content types can still take advantage of the
Quick Look feature."
And then later:
"Quick Look supports the display of document thumbnails and previews
if the format is one of its native types (JPG, PDF, PNG QuickTime
movies). [...] However, if a document is not in one of the native
types, the document’s application must include a Quick Look
generator if it wants to take advantage of the Quick Look feature."
So from that, am I wrong to think that I need to write a generator
IF I want to use quicklook with non-native type ?... But what about
if I want to use quick look for native types?
My point was... I already have some kind of "preview" class that I
wrote for another app (that would basically display an image in a
HUD window and size it accordingly etc..) ... So, if using quicklook
with native types is more complex than just calling a method or
two.. I will use my own class instead...
I guess I didn't formulated in a clear way...
On 27-Nov-08, at 10:32 PM, Rob Keniger wrote:
On 28/11/2008, at 11:29 AM, Jean-Nicolas Jolivet wrote:
I might be missing something obvious here but I'm reading the
Quick Look companion guide and I can't seem to find any info about
implementing QuickLook in my app for native types (only images
actually)...
All I can find is info about writing my own preview generators
etc, do I need to do that for native types too? It seems so
complex I might just end up writing my own preview class and
forget quick look....
QuickLook supports HTML, PDF, RTF, bitmap images and plain text.
You can't have a more complex preview than that, although you can
use graphics contexts to create these formats on the fly:
http://developer.apple.com/documentation/userexperience/Conceptual/Quicklook_Programming_Guide/QLDrawGraphContext/chapter_6_section_1.html
I'm not sure I understand your comment about writing your own
preview class. What is your preview for but for display in the
Finder and QuickLook? How is writing a QuickLook generator
difficult or inadequate for that task?
--
Rob Keniger
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden