• 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
User Installed Resouces (Admin Access)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: User Installed Resouces (Admin Access)
      • From: "Stefan Arentz" <email@hidden>
  • Prev by Date: Re: CoreData Indexing is it possible?
  • Next by Date: Re: Spy++ for Cocoa/Mac OS X?
  • Previous by thread: Re: Spy++ for Cocoa/Mac OS X?
  • Next by thread: Re: User Installed Resouces (Admin Access)
  • Index(es):
    • Date
    • Thread