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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to