Re: Locking Files?
Re: Locking Files?
- Subject: Re: Locking Files?
- From: "Neal A. Crocker" <email@hidden>
- Date: Fri, 7 Sep 2001 15:38:53 -0700
Message: 10
Date: Fri, 7 Sep 2001 02:16:58 -0700
From: "Josh M. Hurd" <email@hidden>
To: email@hidden
Subject: Locking Files?
Hello list,
Is it possible to lock and unlock files in Cocoa? I checked the
NSFileManger docs but it doesn't seem to mention anything about locking
files. I also checked the Functions section for Foundation and AppKit.
Do I have to resort to using Carbon functions? I'd rather not if possible.
Thanks,
M
Regardless of whether there is a Cocoa way, there is probably some
BSD way to do it, since it can be done from the Terminal command line
with what looks like, to my untrained eye, a standard unix command
called "chflag. The flag corresponding to locking is "uchg".
Neal