I have a quicklook
plugin which generates Finder thumbnails and QuickLook Previews for my custom file extension for files in my Virtual File System (developed via FUSE
).
The problem is that on macOS Catalina, QuickLook Preview doesn't work for files with specified extension.
Usually, I debug this by having GenerateThumbnailForURL.m
'echo
' debug text to a file on Desktop OR NSLog
or os_log
so that content is visible in Console.app
.
However, when Console.app
displays the log text from my plugin, it is shrouded with <private>
items instead of actual content.
Is there a way to circumvent this for Console.app
or some other way in which QuickLook plugin
can be debugged on macOS Catalina?
I tried this but it doesn't seem to work on macOS Catalina 10.15.3.
You should not use GeneratePreviewForURL
for quicklook preview generation on Catalina.
Instead, one should implement the QuickLook Preview Extension
target. Launching the target will open the debug session where everything can be debbuged in classical way.
Btw, echo-ing from GenerateThumbnailForURL.m
should no longer work on Catalina because the extension doesn't have write permissions.