• 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
Quick Look Preview with Scrollbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Quick Look Preview with Scrollbar
      • From: Julien Jalon <email@hidden>
  • Prev by Date: Parsing PDF
  • Next by Date: NSScrollView subclass not working with inertia
  • Previous by thread: Re: Parsing PDF
  • Next by thread: Re: Quick Look Preview with Scrollbar
  • Index(es):
    • Date
    • Thread