How would one use this with a List's selection? I am having no luck.
Post
Replies
Boosts
Views
Activity
Its mind-blowing that something like this can be missing still.
Need this as well. Sometimes the document cannot be created without prior configuration and the user picking a location for it.
Would like to know this as well.
Hi eskimo,I am trying to build this solution you suggested, but am a bit unclear as to what you mean by:That child ‘checks in’ with the main service.The child creates an anonymous XPC listener (+[NSXPCListener anonymousListener]), gets an endpoint for that listener (endpoint) and passes that endpoint to the service.Is this by letting the launched endpoint task connect to the broker task via NSXPCConnection(serviceName:)?It does not seem to be able to connect to the broker XPC service, I think because its a child task and doesn't have permission to talk to it? Because of this, I can't pass the endpoint back to the main application.Any idea what might be wrong?The error I am getting back in the endpoint task is:Received error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.***.yyy.broker was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.***.yyy.broker was invalidated.}The broker is running when this error occurs and the main application can connect to it just fine (and launches it automatically).