Re: Quick Look Preview with Scrollbar
Re: Quick Look Preview with Scrollbar
- Subject: Re: Quick Look Preview with Scrollbar
- From: Julien Jalon <email@hidden>
- Date: Thu, 17 Feb 2011 16:39:23 -0800
On Sun, Feb 13, 2011 at 5:13 PM, Andrew Madsen
<email@hidden>wrote:
> 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?
>
>
Yes.
--
Julien
_______________________________________________
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