Using MoreSecurity Asynchronously?
Using MoreSecurity Asynchronously?
- Subject: Using MoreSecurity Asynchronously?
- From: Brian Wells <email@hidden>
- Date: Sun, 4 Dec 2005 11:36:38 -0500
I have been using Apple's MoreSecurity sample code to run a
privileged tool from a Cocoa application. The only problem I've run
into is that MoreSecExecuteRequestInHelperTool does not return until
the tool completes the requested operation. For lengthy operations,
this means that the application will become unresponsive to the user
and the spinning wait cursor appears.
In an effort to correct this problem, I created a few new functions
that allow MoreSecurity to be used in an asynchronous fashion. The
source code has been uploaded to my home page along with a sample
test similar to Apple's MoreAuthSample.
http://homepage.mac.com/brianwells/.Public/TestAuthTool.zip
Please let me know if there are any serious flaws to this approach or
if any of you have a better technique to using MoreSecurity
asynchronously.
Thanks,
– Brian Wells
email@hidden _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden