Le 22 déc. 2012 à 11:59, Christian Schmitz a écrit: > 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.
Ok, thanks. So it's indeed the panel version I want. >> 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. Well, I do that already. Once I call ReloadData, I get the event NumberOfPreviewItems to which I return 1 (in my current test). However, no further event occur and no window opens. Checking the QLPreviewPanelMBS documentation, I can't find how to display the window nor how to know whether it's shown or not; should I use some methods of the parent class (something I'm never sure should be done in Cocoa, which is a bit foreign to me)? Thanks. _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
