Re: launchd-dev Digest, Vol 27, Issue 8

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: launchd-dev Digest, Vol 27, Issue 8

by Nehemiah Dacres-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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) 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.

_______________________________________________
launchd-dev mailing list
launchd-dev@...
http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev