• 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: Checking if a file is Locked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking if a file is Locked


  • Subject: Re: Checking if a file is Locked
  • From: Jeff C <email@hidden>
  • Date: Tue, 28 Nov 2006 23:37:29 -0500

Take a look at NSFileManager. -fileAttributesAtPath:traverseLink: does what you want.

I think NSFileImmutable is the Finder lock value.

To get the Posix permissions, use the NSFilePosixPermissions dictionary key.

 Jeff

On Nov 28, 2006, at 11:26 PM, Chris Suter wrote:

I'm guessing, but the locked property could be the kNameLocked flag declared in CarbonCore/Finder.h.

It looks like you could get hold of this either using getattrlist (BSD) or FSGetCatalogInfo (Carbon).

There might be a Cocoa way; I don't know.

- Chris

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40earthlink.net


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Checking if a file is Locked (From: Chad Armstrong <email@hidden>)
 >Re: Checking if a file is Locked (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Checking if a file is Locked
  • Next by Date: Re: Checking if a file is Locked
  • Previous by thread: Re: Checking if a file is Locked
  • Next by thread: Re: Checking if a file is Locked
  • Index(es):
    • Date
    • Thread