I think the problem with your code is in the line of your code:

if( ![self isAuthenticated:[NSArray arrayWithObject:commandFromPS]] ) {
 [self authenticate:[NSArray arrayWithObject:commandFromPS]];

You are authenticating the wrong thing. You are trying to authenicate the file, but you want to authenicate the command.

So it should be:

if( ![self isAuthenticated:[NSArray arrayWithObject: @"/bin/launchctl"]] ) {
 [self authenticate:[NSArray arrayWithObject: @"/bin/launchctl"]];


Hope this helps.
SD
--
==========================================
SD

WARNING: Programming may be habit forming.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to