RE: Unloading Launch Daemon app using Cocoa Application

2008-04-03 Thread SD
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

Unloading Launch Daemon app using Cocoa Application

2008-03-20 Thread JanakiRam
Hi All, I'm implementing the cocoa application using objective-c. Now my requirement is to restart my launchd daemon service. I've tried using authorization services to perform the previlaged unload of daemon , but didn't succeed in this. Please help me to solve this.T