• 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: Two-way connection with NSConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two-way connection with NSConnection


  • Subject: Re: Two-way connection with NSConnection
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 6 Nov 2008 12:24:19 +0100

Le 6 nov. 08 à 12:12, Stefan Hafeneger a écrit :

Hi,

I would like to set up a two way connection between processes using NSConnection. I currently have solved this vending an object in each process. Now someone proposed to send self as a parameter using the rootProxy to the vendor. This works, but I doubt that this is the best solutions. I prefer to have an instance of NSDistributedObject on the other side as well. Unfortunately I could not find a way to get an instance on the vendor side. Any ideas?

With best wishes, Stefan



When you send self as parameter, it is transformed into an NSDistantObject proxy on the receiver side (as all objects you send byref, which is the default).

Of course, you should not send self directly, but instead an NSProtocolChecker instance that encapsulate self.


_______________________________________________

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: Two-way connection with NSConnection
      • From: Stefan Hafeneger <email@hidden>
    • Re: Two-way connection with NSConnection
      • From: Stefan Hafeneger <email@hidden>
References: 
 >Two-way connection with NSConnection (From: Stefan Hafeneger <email@hidden>)

  • Prev by Date: Two-way connection with NSConnection
  • Next by Date: Re: Two-way connection with NSConnection
  • Previous by thread: Two-way connection with NSConnection
  • Next by thread: Re: Two-way connection with NSConnection
  • Index(es):
    • Date
    • Thread