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 protected])

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