• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSConnection - both ways
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSConnection - both ways
      • From: Ken Thomases <email@hidden>
References: 
 >NSConnection - both ways (From: Nava Carmon <email@hidden>)
 >Re: NSConnection - both ways (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: NSConnection - both ways
  • Next by Date: Re: After Autoreleasing Still Getting Leaked
  • Previous by thread: Re: NSConnection - both ways
  • Next by thread: Re: NSConnection - both ways
  • Index(es):
    • Date
    • Thread