Re: Distributed Objects question
Re: Distributed Objects question
- Subject: Re: Distributed Objects question
- From: Ken Thomases <email@hidden>
- Date: Mon, 9 Feb 2009 16:48:13 -0600
On Feb 9, 2009, at 4:33 PM, Allyn Bauer wrote:
Hey all, I've got a fairly simple server <-> client app in
development. The clients need to be able to communicate with the
server and the server needs to be able to communicate with the
clients. So far I've got the clients getting a NSMutableArray from the
server fine, but I cannot figure out how to add an object to the array
and have it show up on the server. Does anybody have any advice about
this?
Don't attempt to mutate the array from more than one process. It can
be done, but it's a bad idea because it goes behind the back of
whoever conceptually owns the array.
Instead, have the clients message the server to have the server do
whatever needs to be done.
In general, even though D.O. makes it easy to do ad-hoc communication
amongst, well, distributed objects, you should still go to the trouble
of defining a communication protocol and limiting your communication
to that.
Regards,
Ken
_______________________________________________
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