There is an Apple SMJobBless example that show how to securely install a helper tool. SMJobBlessXPC is uses XPC (c API) over Mach ports for communication between the app and privileged helper tool.
I need SMJobBlessXPC by using NSXPCConnection (Objective c API).