• 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
Re: Trashing files and undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trashing files and undo


  • Subject: Re: Trashing files and undo
  • From: Gregory Weston <email@hidden>
  • Date: Sat, 12 Jul 2008 03:51:03 -0400


On Jul 12, 2008, at 3:25 AM, Ruotger Skupin wrote:

Hi,

if I get you right, you are suggesting I put an alias to the file into (say) ~/Library/Application Support/MyApp/UndoAliases/ remember the original path/filename then trash the file. To get it back I resolve the alias and move/rename it.

What's the advantage over the FSRef solution Charles proposed?

More reliable persistence. FSRefs aren't guaranteed to remain valid across program launches. I'm really not sure what the upper limit on FSRef reliability is. If there's any chance you'll want to track a file for an extended period, an alias is the only reliable way.



_______________________________________________

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


References: 
 >Re: Trashing files and undo (From: Gregory Weston <email@hidden>)
 >Re: Trashing files and undo (From: Ruotger Skupin <email@hidden>)

  • Prev by Date: Re: Trashing files and undo
  • Next by Date: Re: Trashing files and undo
  • Previous by thread: Re: Trashing files and undo
  • Next by thread: Re: Trashing files and undo
  • Index(es):
    • Date
    • Thread