Daemons and Services programming guide provides misleading information

Originator:ktam64
Number:rdar://14444487 Date Originated:15-Jul-2015
Status:Open Resolved:
Product:Documentation Product Version:
Classification: Reproducible:
 
I quote from the Daemons and Services Guide when talking about the XPC API: "This API is only available for communication between an application and an XPC service inside its bundle."

This is factually wrong.

Other information lead me to believe that this was wrong. I have implemented a LaunchAgent which lives outside the application bundle and have been able to communicate with it using XPC. Also the method initWithMachServiceName for an NSXPCConnection also demonstrates that the Daemons and Services Guide is wrong.

I believe that there are other examples in that documentation in relation to LaunchAgents and its interaction with XPC that are wrong. There may also be issues relating to LoginItems.

Steps to Reproduce:

1. Read Daemons and Services Guide documentation.
2. Be confused.

Expected Results:

1. Read documentation
2. Not be confused by conflicting information.

Actual Results:

Confusion

Regression:

Notes:
I would also like to see TN2083 updated to match with changes to creating LaunchAgents, LaunchDaemons and LoginItems.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!