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 (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]