Re: NSConnection - both ways
Re: NSConnection - both ways
- Subject: Re: NSConnection - both ways
- From: Nava Carmon <email@hidden>
- Date: Thu, 16 Jun 2011 15:26:40 +0300
I tried to pass my client object as is but it didn't work for some reason.
Should I wrap it somehow?
Thanks
On Jun 16, 2011, at 3:20 PM, Ken Thomases wrote:
> 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
>
Nava Carmon
email@hidden
"Think good and it will be good!"
_______________________________________________
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