• 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: Help converting NSFilePosixPermissions to Octal representation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help converting NSFilePosixPermissions to Octal representation


  • Subject: Re: Help converting NSFilePosixPermissions to Octal representation
  • From: Nate Weaver <email@hidden>
  • Date: Mon, 25 Aug 2008 15:42:59 -0500

unsigned long perms = [[fileAttributes objectForKey:NSFilePosixPermissions] unsignedLongValue];
NSString *permsInOctal = [NSString stringWithFormat:@"%o", perms];


HTH

On Aug 25, 2008, at 3:03 PM, Charles E. Heizer wrote:

Hello,
I have been googaling and searching but I must be missing something. Can
someone please tell me how to get the Octal representation from the returned
value of [fileAttributes objectForKey:NSFilePosixPermissions].


Thanks,
- Charles


------------------------------------------------------------------------ Charles Heizer Systems Management Solutions Group Lawrence Livermore National Laboratory 7000 East Ave. L-561 Livermore, CA 94550 Phone: (925)422-0197 email: email@hidden ------------------------------------------------------------------------

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Help converting NSFilePosixPermissions to Octal representation
      • From: Nate Weaver <email@hidden>
References: 
 >Help converting NSFilePosixPermissions to Octal representation (From: "Charles E. Heizer" <email@hidden>)

  • Prev by Date: Core Data Entity object
  • Next by Date: Re: Semi-transparent, blurred NSWindow background?
  • Previous by thread: Help converting NSFilePosixPermissions to Octal representation
  • Next by thread: Re: Help converting NSFilePosixPermissions to Octal representation
  • Index(es):
    • Date
    • Thread