Re: How to detect when a AuthorizationExecuteWithPrivileges process has finished
Re: How to detect when a AuthorizationExecuteWithPrivileges process has finished
- Subject: Re: How to detect when a AuthorizationExecuteWithPrivileges process has finished
- From: Zeno Crivelli <email@hidden>
- Date: Mon, 23 Jun 2003 16:10:42 +0200
>
> How to detect when a process - launched with
>
> "AuthorizationExecuteWithPrivileges" from Security.framework - has
>
> finished?
>
>
>
> Does the "AuthorizationExecuteWithPrivileges" function return
>
> immediately or after the execution is completed?
>
>
It returns immediately.
>
>
> If it returns immediately then how does one know when it completes?
>
>
Nothing prevents you to add a Distributed NotificationCenter to the
>
main application and then send a notification from the launched process
>
to say: "Done!".
Yes, but HOW can I detect the end of that launched process?
If I would use NSTask, I would add:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(finishedTask:)
name:NSTaskDidTerminateNotification
object:nil];
And then I would implement the finishedTask: method...
But I canNOT find the equivalent of "NSTaskDidTerminateNotification" in the
AuthorizationExecuteWithPrivileges method.
That's my problem...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.