• 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: Permission madness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Permission madness (From: Riccardo Santato <email@hidden>)

  • Prev by Date: Re: Multiple invocations of awakeFromNib on a single instance?
  • Next by Date: Re: NSAttributedString has initWithHTML method
  • Previous by thread: [OT] Re: Permission madness
  • Next by thread: Deutsche Cocoa Entwickler?
  • Index(es):
    • Date
    • Thread