Am 21.12.2012 um 22:24 schrieb Marnaud <[email protected]>:

> Ok, since the beginning, I'm hesitating between the QLPreviewViewMBS and 
> QLPreviewPanelMBS classes. The latter is the one I thought was the correct 
> one, but the documentation says this about the QLPreviewViewMBS class: "If 
> you want to show previews of files in your application, use this view.", 
> which led me to think I was wrong and so I choose the QLPreviewViewMBS class.

Well, the view is for inside a window and a panel give you an extra window. 
The Finder uses the Panel for preview when you press space key.
For column view the Finder uses the view, I think.

> Now, I'm trying the QLPreviewPanelMBS class instead, since QLPreviewViewMBS 
> just led to crashes. However, when I write QLPP1.currentPreviewItem=MyFile, 
> RB tells me this method or property doesn't exist. As for the events called 
> (in case the properties are read-only and I must pass the data only from the 
> events), I get numberOfPreviewItems, to which I return UBound(AllMyFiles)+1, 
> and then willLoadPreviewItem with the parameter (file) being nil.


currentPreviewItem is read only.

You provide files using the events only.
If you change the items, in your array (or whatever you use to store items), 
please call reloadData.

Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to