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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to