Nikhil,

On Fri, Mar 19, 2010 at 2:59 AM, Nikhil Khandelwal
<nikhil_khandel...@persistent.co.in> wrote:
> Is there any way to lock a file in cocoa? I want to lock a file on desktop 
> programmatically so that I can't move that file to trash until I unlock the 
> file.

How long do you need to prevent its removal?  Just holding the file
open should prevent it from being deleted.

Don Quixote
-- 
Don Quixote de la Mancha
quix...@dulcineatech.com
http://www.dulcineatech.com

   Dulcinea Technologies Corporation: Software of Elegance and Beauty.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to