Use Quick Look inside a Swift cocoa application to preview audio files
问题 My application lists audio files (MP3) in a NSTableView, with the object for each row containing a path to the audio file. I would like to be able to preview an audio file with Quick Look (like in Finder) when hitting the space bar while one row is selected. By looking at related questions and answers, I noticed that the API seems to be private and so it's been very hard to find recent and reliable information or documentation about this, let alone in Swift. What's more, most examples I found