[launchd-dev] launchd-dev Digest, Vol 27, Issue 8

Nehemiah Dacres vivacarlie at gmail.com
Tue Sep 22 07:53:00 PDT 2009


alright, at your first post I though you were reloading program code while a
progam is running. Instead your changing launch properties of the program
via the program being launched while its running.
 the best way to do this  via the program is to edit the file using the
cocoa framework instead of a script (documentation
here<http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/PropertyLists/ReadWritePlistData/ReadWritePlistData.html#//apple_ref/doc/uid/10000048i-CH8-SW1>)
and using the system() call from stdlib
  "system("launchd load com.yourdomain.yourprogram); "

I still have no idea why you think the program should be changed by the
server instead of a client but whatever. such a repetitive, brainless task
should be left as stateless as possible to allow easy debugging. when you
change things programmaticly, if that change isn't absolutely predictable,
things get unstable quickly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-dev/attachments/20090922/ed3e192b/attachment.html>


More information about the launchd-dev mailing list