• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quick Look Preview with Scrollbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Quick Look Preview with Scrollbar (From: Andrew Madsen <email@hidden>)

  • Prev by Date: Re: Setting a color in a NSBitmapImageRep to white or black
  • Next by Date: Re: Setting a color in a NSBitmapImageRep to white or black
  • Previous by thread: Quick Look Preview with Scrollbar
  • Next by thread: NSScrollView subclass not working with inertia
  • Index(es):
    • Date
    • Thread