• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Unloading Launch Daemon app using Cocoa Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to create process independent of current process AND that takes command line arguments?
  • Next by Date: Re: Can we write Mac Servies like We write for Windows services
  • Previous by thread: Re: Can we write Mac Servies like We write for Windows services
  • Next by thread: Using WSDL based stubs in the carbon/cocoa application.
  • Index(es):
    • Date
    • Thread