The NSConnection and NSDistantObject headers say to use NSXPCConnection instead, but NSXPCConnection doesn't have an init method that takes a port. So what's the best way to send messages between 2 remote apps over a network?
We have apps that do work, and users want apps to monitor the workers' progress. The old way we did this was with NSSocketPort, NSConnection, NSDistantObject<OurCustomProtocol>, then doing the whole NSMethodSignature, NSInvocation dance in the monitor app, and NSThread, NSTimer, and other objects in the worker to periodically send out progress updates to any listening monitors. The monitor also periodically sends out "are you there" messages to see if the worker has quit/crashed so the monitor can reset the progress display.
How would this be done without deprecated classes like NSConnection?