• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Locking Files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Locking Files? (From: "Josh M. Hurd" <email@hidden>)

  • Prev by Date: Memory fragmentation
  • Next by Date: Initialization of doubles
  • Previous by thread: Re: Locking Files?
  • Next by thread: Re: Locking Files?
  • Index(es):
    • Date
    • Thread