Re: Distributed Objects question
Re: Distributed Objects question
- Subject: Re: Distributed Objects question
- From: Allyn Bauer <email@hidden>
- Date: Tue, 10 Feb 2009 14:23:33 -0600
Thanks for the response Ken. Do you have any online resources that
outline details regarding a communication protocol? Neither of the
books I have discuss it, and I'm having trouble finding a good online
resource. I usually work best with example code, so if that is all
that is available, I'd really appreciate it if you could steer me a
little more in the right direction.
Thanks,
Allyn
On Mon, Feb 9, 2009 at 4:48 PM, Ken Thomases <email@hidden> wrote:
> 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