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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to