Re: NSConnection - both ways
Re: NSConnection - both ways
- Subject: Re: NSConnection - both ways
- From: Ken Thomases <email@hidden>
- Date: Thu, 16 Jun 2011 07:20:37 -0500
On Jun 16, 2011, at 3:40 AM, Nava Carmon wrote:
> I'd like to establish connection between two processes. I'm using NSConnection from the server side:
> And it works ok. My question is how do I establish the connection to both ways, so I can get the distributed object of the client in server, like both processes will serve as server and client for each other?
You don't need to do that. One connection is enough. Once the client has the proxy for the server's root object, it can invoke a method on that object to give the server a proxy to an object of its own. Then, the server can invoke methods on that proxy of the client's object to message the client.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden