QLPreviewPanel (how to supply default application url?)
QLPreviewPanel (how to supply default application url?)
- Subject: QLPreviewPanel (how to supply default application url?)
- From: sqwarqDev <email@hidden>
- Date: Mon, 30 May 2016 17:20:58 +0700
Hoping someone can get me over the final hurdle…
I have an NSTableView and I want the user to be able to hit the space bar to invoke a QuickLook preview of the selected item. These items are not custom objects, just regular text files.
I’m following the sample code provided by Apple in QuickLookDownloader as my guide (see: https://developer.apple.com/library/mac/samplecode/QuickLookDownloader/Introduction/Intro.html)
I’ve got everything up and running in the sense of, yes, I can hit the space bar, a preview panel pops up and shows my item’s title and an icon (the wrong icon, but that’s not my worry, yet). What it doesn’t show is a preview of the text file.
In the log I see this message:
[QL] LSCopyDefaultApplicationURLForURL for /Users/phil/Documents/sample.txt returned error Error Domain=NSOSStatusErrorDomain Code=-50 "paramErr: error in user parameter list”
My question is where in my code do I provide this parameter? I don’t see it given in any of the methods in the QuickLookDownloader source.
TIA
Best
Phil
_______________________________________________
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