Re: Folder has limited permissions.
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