RE: Unloading Launch Daemon app using Cocoa Application
RE: Unloading Launch Daemon app using Cocoa Application
- Subject: RE: Unloading Launch Daemon app using Cocoa Application
- From: SD <email@hidden>
- Date: Thu, 03 Apr 2008 23:26:10 -0700
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 (email@hidden)
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:
This email sent to email@hidden