• 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: Removing folder from /Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing folder from /Applications


  • Subject: Re: Removing folder from /Applications
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 8 Jul 2008 12:19:50 -0600


On Jul 8, 2008, at 6:20 AM, Glover,David wrote:

		myStatus = AuthorizationCopyRights (myAuthorizationRef,
&myRights, kAuthorizationEmptyEnvironment, myFlags, NULL);

		if ([NSFm removeFileAtPath: (NSString *)
@"/Applications/Folder" handler: nil] == NO)


You can't elevate the privileges of an existing task; you can only remove them. So you need to call AuthorizationExecuteWithPrivileges() to run some other program with privileges that deletes the folder.

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: Removing folder from /Applications
      • From: Chris Hanson <email@hidden>
References: 
 >Removing folder from /Applications (From: "Glover,David" <email@hidden>)
 >Re: Removing folder from /Applications (From: Robert Cerny <email@hidden>)
 >RE: Removing folder from /Applications (From: "Glover,David" <email@hidden>)

  • Prev by Date: MIDI Sequencing
  • Next by Date: Re: Delete action from variety of key presses
  • Previous by thread: RE: Removing folder from /Applications
  • Next by thread: Re: Removing folder from /Applications
  • Index(es):
    • Date
    • Thread