Re: Permission madness
Re: Permission madness
- Subject: Re: Permission madness
- From: Chris Parker <email@hidden>
- Date: Thu, 24 Jan 2002 14:51:20 -0800
Hi Riccardo,
On Thursday, January 24, 2002, at 10:32 AM, Riccardo Santato wrote:
2) Is there an Aqua way to change permissions or just via chmod ?
Well, in Cocoa, NSFileManager's fileAttributesAtPath:traverseLink: and
changeFileAttributes:atPath: methods are probably what you're looking
for.
These get and set the various UNIX permission and other attributes and
in some cases HFS-style attributes on the given path.
NSFileManager's documentation is here:
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/
Classes/NSFileManager.html
and describes for those methods the various keys in the dictionary you
pass to get and set the attributes in question.
.chris
--
Chris Parker <email@hidden>
Cocoa Frameworks Engineer