I have a shipping Sandbox'd App that saves a thumbnail of an image if the user add's it to the App. It
also saves the original URL to that image with the thumbnail for reference later on.
If the user then later wants to "look" at the original image, I do:
[[NSWorkspace sharedWorkspace] openURL:photoURL]
which has worked in the past. Now it only half works in that, if the original image
came from an eg: http(s):// URL, the openURL will launch Safari with that URL. But if
the original image came from a file:// URL, it no longer launches eg: Preview or
the default Application for that file type, and instead fails and pops up a message
on my App saying "The application "<MyApp>" does not have permission to open
<imagename>.png".
(I checked and "
URLForApplicationToOpenURL:" returns Preview for
the default Application for the file. I also checked and no "error" messages show up
in the Console)
I don't have, and don't want, access to the original file in my App. I just
want to launch whatever viewer Application the user has configured.
Did something change security wise to make this feature impossible now?