Re: Lock a file in cocoa
Re: Lock a file in cocoa
- Subject: Re: Lock a file in cocoa
- From: Murat Konar <email@hidden>
- Date: Fri, 19 Mar 2010 11:49:57 -0700
This seems like a case where it might be good to know why you need to
prevent a file from being trashed. There is probably a better way to
accomplish what you need.
_murat
On Mar 19, 2010, at 11:36 AM, Charles Srstka wrote:
On Mar 19, 2010, at 11:04 AM, Jens Alfke wrote:
On Mar 19, 2010, at 5:17 AM, Don Quixote de la Mancha wrote:
How long do you need to prevent its removal? Just holding the file
open should prevent it from being deleted.
Yes, but not from being moved to the trash, which was the OP’s
request. Actually I’m not sure the immutable bit prevents moving
the file, either.
It doesn’t. All it does is cause an annoying dialog box to pop up
the next time the user tries to empty the Trash.
Charles_______________________________________________
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
_______________________________________________
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