I'm writing an OS X application that has an open panel with a preview accessory view.
The problem is that when I select a file that is not on a folder with sandbox permissions I cannot preview it.
Is there any way to tell if a file can would be restricted by the sandbox permissions before trying to open it?
I already tried - (BOOL)checkResourceIsReachableAndReturnError:(NSError **)error
of the NSURL
class but it returns true even when the file is protected.