• 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: How to delete read only files in LaunchAgent folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to delete read only files in LaunchAgent folder
      • From: Jerry Krinock <email@hidden>
References: 
 >How to delete read only files in LaunchAgent folder (From: Lance Kwan <email@hidden>)

  • Prev by Date: Re: Using NSNotificationCenter passing an object or value?
  • Next by Date: Re: Re: CoreData warning: File.children -- to-many relationship does not have an inverse:
  • Previous by thread: How to delete read only files in LaunchAgent folder
  • Next by thread: Re: How to delete read only files in LaunchAgent folder
  • Index(es):
    • Date
    • Thread