Quick Look Preview with Scrollbar
Quick Look Preview with Scrollbar
- Subject: Quick Look Preview with Scrollbar
- From: Andrew Madsen <email@hidden>
- Date: Sun, 13 Feb 2011 18:13:09 -0700
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 (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