Re: Locking Files?
Re: Locking Files?
- Subject: Re: Locking Files?
- From: David Remahl <email@hidden>
- Date: Fri, 7 Sep 2001 21:37:45 +0200
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.
Sorry folks,
I wasn't clear in my question. I am looking for a way to lock a file
'Finder style.' As if I had clicked the Locked checkbox in the Finders
Info Panel. Not locking to protect an open file from other processes
or threads.
Thanks and sorry for the lack of clarity.
I think you will have to use Carbon, which is actually not that much of
a deal...Check out the File Manager doucmentation.
CoreServices.framework contains the necessary headers.
/ david