NSFileManager & Root Permissions
NSFileManager & Root Permissions
- Subject: NSFileManager & Root Permissions
- From: Keith Duncan <email@hidden>
- Date: Thu, 14 Dec 2006 23:26:48 +0000
Hi,
I'm writing an installer app for my current project. Its using
NSFileManager for to copy files from its plugins directory to their
destination.
if ([fileManager copyPath:currentPath toPath:installPath
handler:nil]) [installedItems addObject:installPath];
else {
NSLog(@"Error, installation of \"%@\" failed", [currentBundle
objectForKey:@"name"]);
[errors addObject:currentBundle];
}
Now, this already works when I want copy a bundle to /Library/
PreferencePanes but it doesn't want to work when copying plists to /
Library/LaunchAgents or /Library/LaunchDaemons. Is there some reason
for this or is it just that my app needs the user to Authorize as an
admin/root user? If so, how would I implement this?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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