Re: Authorization.h
Re: Authorization.h
- Subject: Re: Authorization.h
- From: "Josh M. Hurd" <email@hidden>
- Date: Tue, 6 Nov 2001 01:20:50 -0800
So I was able to get Authorization working easily. Very clever how the
Authenticate panel warns you that your Caps Lock is down. I haven't
been so lucky with getting my worker tool to communicate with my main
app.
My main app needs to be able to operate on a list of files as root. It
already does this with non-root files so all the code and data
structures are in place. My data is in an NSArray and I would like to
send it to my root privileged tool as such to avoid code changes. I
have read through tons of doc pages and pieced together snippets of
sample code but can't get it to work. Neither one is willing to respond
to the other. I am attempting to make connections with NSConnection and
communicate through a proxy using NSProxy. Is this even close?
Does anyone know of a good tutorial or some sample code that illustrates
how to so this? I've checked various site, including Apple but haven't
found any that helped.
Thanks!
M
On Monday, November 5, 2001, at 10:48 PM, Julien Jalon wrote:
Le mardi 6 novembre 2001, ` 07:26 AM, Charles Srstka a icrit :
The annoying thing about AuthorizationExecuteWithPrivileges is that
there is apparently no way to make your program wait for the tool to
exit before continuing! This can make things very difficult
sometimes...
I use NSNotifications and NSDistributedNotificiationCenter to
synchronize my app with the launched tool...
--Julien
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev