Re: Getting QuickLook to work with NSDocument
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