I have a PrefPane that acts as a ui for a command line utility (helper). According to the launchd docs, all I need to do is add the correct plist to the /LaunchAgents folder. However, this will take effect after a restart, which is unacceptable. To load the helper immediately, I need to go through launchctl.

So here's my problem: there are virtually no docs on how to use launchctl programmatically, and the sporadic comments google turned up on the subject say it's not worth the trouble. However, I can't seem to find a "recommended" alternative. It's my understanding that the alternative possibly involves a script to call launchctl, but how would this work, and more importantly, how would it be integrated into the PrefPane code?

Any insight would be greatly appreciated!

Thanks
D. Rolidis
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to