Re: Trashing files and undo
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