I have two applications 'A' and 'B' and need to do some ipc. Process 'A' launches process 'B' if it is not already running. In process 'A' I create NSConnection
and registerName:
. In process 'B' , I get the remote object by calling rootProxyForConnectionWithRegisteredName:
. And it sets client object pointer to remote object so that Process 'A' uses that object to call client object methods. Until process 'B' launches and establishes connection the _clientObj
is nil. I might receive events that are intended to _clientObj
.
@interface Server : NSObject {
@private
id _clientObj;
}
Question: Is there a way so that i make _clientObj
as NSDistantObject
and it holds all the messages until _clientObj
is constructed.