• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sandbox, security bookmarks and trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Sandbox, security bookmarks and trash
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: App rejection due to app-sandboxing invalid entitlement
  • Next by Date: Re: Binding alignment property of NSTextField
  • Previous by thread: How to check if the app is sandboxed and what entitlements it has got?
  • Next by thread: Re: Sandbox, security bookmarks and trash
  • Index(es):
    • Date
    • Thread