• 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
AuthorizationExecuteWithPrivileges vs SMJobBless
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AuthorizationExecuteWithPrivileges vs SMJobBless


  • Subject: AuthorizationExecuteWithPrivileges vs SMJobBless
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 09 Aug 2012 12:09:05 -0700
  • Thread-topic: AuthorizationExecuteWithPrivileges vs SMJobBless

I am using AuthorizationExecuteWithPrivileges to copy a prefPane from its
installed location to the trash as part of the action on an "uninstall"
button.

It runs /bin/mv on the file/package

Of course this is only if the pane is in /Library/PreferencePanes since if
it is in ~/Library/PreferencePanes no authorization is needed.

SMJobBless seems to be the more modern way to do this, but this requires
that my tool be copied from my bundle to another location on the hard drive
which is not what I want.

Is AuthorizationExecuteWithPrivileges  ok to use (since it is marked as
deprecated)?

Thanks,

Trygve



_______________________________________________

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

  • Prev by Date: Re: How to...
  • Next by Date: Re: Crash in heartbeat thread while progress indicator showing
  • Previous by thread: Re: How to...
  • Next by thread: Simple date format problem? iOS 5
  • Index(es):
    • Date
    • Thread