• 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; Distributed object vending problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re; Distributed object vending problem


  • Subject: re; Distributed object vending problem
  • From: Kirk Kerekes <email@hidden>
  • Date: Mon, 20 Sep 2010 07:22:29 -0500

> How do I send messages to a server's vended object without having to include the server's entire dependency tree?


Incorporate the methods that you actually need for remote interaction into a protocol that is defined in a separate .h file, and #import it at both ends of the connection. You want to do that anyway to specify the special DO properties for those methods (bycopy, oneway, et al).

To keep things clean on the server end, I would factor out the same methods into a category on the server class. The category then implements the protocol compliance.

If you are communication across the wire I highly recommend oneway void methods with explicit bycopy params, BTW -- combined with async callbacks (also oneway-void + bycopy) you get a robust system that will survive real-world issues better.





_______________________________________________

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

  • Prev by Date: Re: What's the point of @properties?
  • Next by Date: Re: Programmatic View Question
  • Previous by thread: Re: NSView resizing problems.
  • Next by thread: Accessing NSDistantObject from different threads concurrently
  • Index(es):
    • Date
    • Thread