Sandbox, security bookmarks and trash
Sandbox, security bookmarks and trash
- Subject: Sandbox, security bookmarks and trash
- From: Simone Tellini <email@hidden>
- Date: Sat, 27 Oct 2012 13:07:32 +0200
Hello,
I need to handle an "export" function in a document-based application.
When the user creates the document, he can also choose a couple of path where to save different exported results (e.g. "~/Documents/exporteddata.xml"). The document contains security bookmarks that point to those files, so that when the user reopens the document, he can simply hit "export" to generated them again, overwriting the previous data.
Problem is, if the user moves one of those files to the trash, the next time the application resolves the security bookmark it will point to the deleted file (ie. something like ".../.Trash/..."). I'd rather like the application to keep on re-creating the file at the path the user has chosen in the first place (ie. "~/Documents/exporteddata.xml").
Is it possible? Or how do you handle this scenario in an user-friendly way?
--
Simone Tellini
http://tellini.info
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden