• 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: "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


  • Prev by Date: Re: Custom Windows
  • Next by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Previous by thread: Re: Locking Files?
  • Next by thread: Re: Locking Files?
  • Index(es):
    • Date
    • Thread