Re: How to delete read only files in LaunchAgent folder
Re: How to delete read only files in LaunchAgent folder
- Subject: Re: How to delete read only files in LaunchAgent folder
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 3 Aug 2010 20:40:39 -0600
On Aug 3, 2010, at 7:39 PM, Lance Kwan wrote:
> Im currently creating a prototype that will delete plist files in LaunchAgent
> folder.
>
> Ive used NSFileManager removeItemAtPath:error: method but unable to delete since
> i do not have permission.
>
> How will i delete the read only file programatically?
Search ADC for the "BetterAuthorizationSample" sample project. You're going to have to use Authorization Services to perform the tasks your app can't due to permissions.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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