0

Possible Duplicate:
AuthorizationExecuteWithPrivileges is deprecated

I' using AuthorizationExecuteWithPrivileges and now XCOde says it is Deprecated. Is it going to be working for long ?

Also, do I need to use anything else ??

Here is an example of what I does : http://pastebin.com/Yh0KDTUM (There is 2 methods on this paste. The authentication one and at the bottom an example of use to move files.

Thanks you !

Community
  • 1
  • 1
Jamesst20
  • 414
  • 6
  • 20
  • What do you mean ? My question is what do I need to use since it is deprecated ? – Jamesst20 Oct 29 '11 at 01:58
  • As Graham Lee wrote in the answer to the linked question, use `SMJobBless()`. –  Oct 29 '11 at 02:01
  • Yeah but apparently, I can't use mv, chmod, mv, rm, chown.... with SMJobBless() Any example plz ? – Jamesst20 Oct 29 '11 at 02:02
  • http://developer.apple.com/library/mac/#samplecode/SMJobBless/ –  Oct 29 '11 at 02:04
  • The example return Sign in code error and if I select don't code sign, it says in console Something went wrong ! – Jamesst20 Oct 29 '11 at 02:11
  • Managed to get the sample working but it's weird, we need to add a Keychain 0o. How does installer works then ? They must use something like AuthorizationExecuteWithPrivileges.. – Jamesst20 Oct 29 '11 at 02:22

0 Answers0