> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to