Re: QLPreviewPanel (how to supply default application url?)
Re: QLPreviewPanel (how to supply default application url?)
- Subject: Re: QLPreviewPanel (how to supply default application url?)
- From: email@hidden
- Date: Mon, 30 May 2016 19:42:29 +0900
Did you include the code?
It's hard to know what you did wrong by guessing blindly.
My guess would be the LSRolesMask
But it may mean each parameter of the function as the parameter list.
Sent from my iPhone
> On May 30, 2016, at 7:20 PM, sqwarqDev <email@hidden> wrote:
>
> 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
_______________________________________________
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