re; Distributed object vending problem
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