• 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: Getting QuickLook to work with NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting QuickLook to work with NSDocument


  • Subject: Re: Getting QuickLook to work with NSDocument
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 10 Feb 2014 12:21:55 -0600

On 8 Feb 2014, at 5:32 AM, Pax <email@hidden> wrote:

> I'm trying to get QuickLook preview to work with NSDocument - much as in the QuickLookDownloader example provided by Apple.
>
> I thought I had it all set up correctly -
>
> #import <Quartz/Quartz.h>
>
> @interface Document : NSDocument <NSToolbarDelegate,QLPreviewPanelDataSource, QLPreviewPanelDelegate>
> {
>    QLPreviewPanel* previewPanel;
> }
>
> Something is clearly amiss though - because acceptsPreviewPanelControl is never called. Does anyone know of any really simple, dumbass examples (simpler even than QuickLookDownloader) that might help me untangle this conundrum?

An is-it-plugged-in question: Have you set the “Document” object (a worse-than-unwise choice of class name, by the way) as the preview panel’s delegate?

	— F


_______________________________________________

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: 
 >Getting QuickLook to work with NSDocument (From: Pax <email@hidden>)

  • Prev by Date: Re: makeDocumentForURL:nil withContentsOfURL:fileURL causing deletion
  • Next by Date: Re: Core Data : Synchronizing objects with SQLite file
  • Previous by thread: Getting QuickLook to work with NSDocument
  • Next by thread: Design pattern for bulk data handling
  • Index(es):
    • Date
    • Thread