• 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 Objects question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Distributed Objects question
      • From: Allyn Bauer <email@hidden>
References: 
 >Distributed Objects question (From: Allyn Bauer <email@hidden>)

  • Prev by Date: Which keyboard (barcode scanner) did the event come from?
  • Next by Date: Re: Where is ${EXECUTABLE_NAME} defined?
  • Previous by thread: Distributed Objects question
  • Next by thread: Re: Distributed Objects question
  • Index(es):
    • Date
    • Thread