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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/silvertab%40videotron.ca

This email sent to [EMAIL PROTECTED]

Jean-Nicolas Jolivet
[EMAIL PROTECTED]
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to