File icon does not show for sandboxed app

I have defined the UTI to get an icon associated to files created by the App.


This works well when the app is not sandboxed.


But when sandboxed, it does not work anymore.

In fact, I can't even create the file with a file extenssion : data.write() returns false if I have an extension attached.

Just some follow up


I've implemented the 2 steps : NSOpenPanel and NSSavePanel. And that works (I can create 2 files in the folder I selected).


I just had to include the NSSavePanel call inside the openPanel.begin() ,handler in order to het the openPanel.url set up when calling NSPanel.


I save bookmarks in documentDirectory in userDomain (anyway this has not to be visible to user).

File icon does not show for sandboxed app
 
 
Q