xcode - Make a Quick Look NSView in Swift -


i'm trying add feature app: when pushing button, open quick view of file.

i saw this: use quick inside swift cocoa application preview audio files, error written in comments shows , app crashes after trying go , forth between files.

apple's class reference of qlpreviewpanel quite empty.

which correct implementation? wrong in answer in question linked?

apple's class reference of qlpreviewpanel quite empty.

they have lot of bugs currently. can "view page source" in browser, or use xcode built-in help, it's pretty good.

which correct implementation?

it looks has done it swift. i'm not sure if that's full implementation.

what wrong in answer in question linked?

qlerror() [...] called while panel has no controller decrypted way: class in responder chain (your nsview or nswindow should there already, unless have complex structure) must respond acceptspreviewpanelcontrol: , 2 other qlpreviewpanelcontroller methods.


Comments