Re: Getting QuickLook to work with NSDocument

2014-02-10 Thread Fritz Anderson
On 8 Feb 2014, at 5:32 AM, Pax 45rpmli...@googlemail.com 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Getting QuickLook to work with NSDocument

2014-02-08 Thread Pax
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?
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com