• 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: Folder has limited permissions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder has limited permissions.


  • Subject: Re: Folder has limited permissions.
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 24 Jul 2008 13:49:32 -0500

On Jul 24, 2008, at 7:24 AM, Macarov Anatoli wrote:

Cocoa, Obj-c.
How to creat a file in the folder that has limited permissions (read- only)?

This is ambiguous. Do you mean there is a folder to which the user does not have write permissions and you want to create a file within it? If so, then (as others have already said) authopen and/or Authorization Services is what you want.


Or, do you mean that you want to create a file which will have read- only permissions after you create it? If that's what you meant, you can use -[NSFileManager setAttributes:ofItemAtPath:error:] with an attributes dictionary containing the NSFilePosixPermissions key.

Cheers,
Ken
_______________________________________________

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


References: 
 >Folder has limited permissions. (From: Macarov Anatoli <email@hidden>)

  • Prev by Date: Re: XML serialization and deserialization
  • Next by Date: Re: Replacement for openUntitledDocumentOfType:display:
  • Previous by thread: Re: Folder has limited permissions.
  • Next by thread: Re: Folder has limited permissions.
  • Index(es):
    • Date
    • Thread