Re: Checking if a file is Locked
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