User Installed Resouces (Admin Access)
User Installed Resouces (Admin Access)
- Subject: User Installed Resouces (Admin Access)
- From: Keith Duncan <email@hidden>
- Date: Tue, 18 Sep 2007 17:08:23 +0100
I'm working on a new feature that allows the end user to install
additional application resources post-install.
I want to copy sound files to the application's support folder but I
also want to give the user the option of installing the files for all
users. An example of this can be seen in the System Preferences
application when you install a new preference pane.
I tried using NSFileManager and NSWorkspace methods to copy the files
but they both fail and neither request authentication. I have hacked
together some code that serves as a wrapper to
AuthorizationExecuteWithPrivileges() allowing me to run arbitrary
shell commands but I'd rather have a cleaner implementation.
I'm also looking for a way to determine if the user has the rights to
write to /Library/Application Support or if I have to put up an
authorization panel before proceeding.
Keith
_______________________________________________
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