2
OSStatus myStatus = AuthorizationExecuteWithPrivileges(Autref, (const char *)[args UTF8String], myFlags,arguments, &communicationsPipe);

I want make my root app run other program and a communicationsPipe can communication this two program. But I find a warning:

'AuthorizationExecuteWithPrivileges' is deprecated: first deprecated in OS X 10.7

So I want find API can instead of this. But I can not find it! So can anyone tell me about something?

Cœur
  • 37,241
  • 25
  • 195
  • 267
hailuodev
  • 764
  • 5
  • 9

0 Answers0