I'm writing a Quick Look Plug-in to generate previews of my application's (Core 
Data) documents. I've got the generator working ok with one problem. If the 
document is large/long, and I return an preview that is say 5000 pixels high, 
Quick Look scales the preview image instead of putting it in a scroll view, 
making it impossible to see any detail. Is there some way to tell Quick Look to 
display the preview at its native width, then add a vertical scrollbar? For 
example, when Quick Looking long Microsoft Word or Excel documents, the Quick 
Look panel includes a vertical scrollbar.

The generator uses QLPreviewRequestCreateContext to get a CGContext, and from 
there an NSGraphicsContext which it then draws into using a custom NSView 
subclass, in a similar manner to Apple's QuickLookSketch example code.

Is generating HTML or multi-page PDF the only way to get a scrolling preview?

Thanks,
Andrew_______________________________________________

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 arch...@mail-archive.com

Reply via email to