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.