[Catalina] Quick Look doesn't extend Sandbox for "related items"

Hi folks,


My Quick Look plugin reads a "related item" in addition to the file to be thumbnailed / previewed. Therefore I implement a NSFilePresenter as described in scenario 2 of the link Apple documentations:


https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html#//apple_ref/doc/uid/TP40011183-CH3-SW22


This approach worked well until macOS 10.15 "Catalina" (and even works there for the main app). When previewing a file with Quick Look the related item file is not read. I assume the sandbox of Quick Look is not extended to the related item.


Before filing a RADAR, does anyone has a similar QL plugin and observing the same behavior?


Greetings, Mattes


Edit: If I perform the preview using qlmanage the related item is read...

Feedback (aka RADAR) sent to Apple 1.5 years ago, still "open" and no response (FB7390114). I somehow bypassed the issue as additional file information has been moved from "related items" to extended file attributes, which are accessible from Quick Look.

More than 7 years later and the issue still exists - even with Preview / Thumbnail extensions: NSFileCoordinator / NSFilePresenter are used (and working with the apps on macOS and iOS), but Console.app is reporting a sandbox violation once a file with related items ("sidecar files") is previewed.

Unfortunately, no comment from Apple at all, not even a "works as designed" - what would be strange as the behavior was broken with macOS 10.15...

[Catalina] Quick Look doesn't extend Sandbox for "related items"
 
 
Q