• 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: Launching agents .
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching agents .


  • Subject: Re: Launching agents .
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 12 Jun 2009 05:00:54 -0700


On 2009 Jun 12, at 03:39, rethish wrote:

what is the reason for this behaviour?

Actually, we answered this for you last week....

http://www.cocoabuilder.com/archive/message/cocoa/2009/6/4/238136

I'll explain in more detail. The problem you are seeing is that a newly-installed launchd plist file or "task" is not automatically "loaded". In order to "load" it, you must run the launchctl program.

launchctl is a unix program, accessible from the command line, and unfortunately there appears to be no equivalent library function. At least I've never been able to find one. Therefore, you must create an NSTask to run launchctl and launch the NSTask.

Same thing if you want to "unload" a task.

In Xcode's menu, click Help > Open man page... and then enter "launchctl" to learn about launchctl.

_______________________________________________

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


References: 
 >Launching agents . (From: rethish <email@hidden>)

  • Prev by Date: is setFrame as optimal as setNeedsDisplayInRect?
  • Next by Date: Re: problems with scripting
  • Previous by thread: Launching agents .
  • Next by thread: problems with scripting
  • Index(es):
    • Date
    • Thread