• 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: Simple Network Client Design (newbie alert)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Network Client Design (newbie alert)


  • Subject: Re: Simple Network Client Design (newbie alert)
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 30 Jan 2002 17:32:32 +0100

Ross,

>>>>>> Ross Hayden (RH) wrote at Wed, 30 Jan 2002 10:42:48 -0500:
RH> I'm trying now to rewrite the client in Cocoa.
RH>
RH> I've redesigned it so that reading from the socket blocks in a thread and
RH> doesn't hold up my user interface. I hope that's the best way to do that?

sorry, but it is not: the best way to do that is Distributed Objects.
Conceptually, you communicate with those object in the remote task *IN THE
SAME WAY* as with the local ones:

[obj showString:aString];

would work just as perfectly if "obj" is part of the same task as the caller
of this code, as if it is in a server, and the code above is performed from
a client!

Do read NSConnection.html. You might check NSProxy too, but for basics it is
not needed.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


  • Follow-Ups:
    • Re: Simple Network Client Design (newbie alert)
      • From: Malte Tancred <email@hidden>
References: 
 >Simple Network Client Design (newbie alert) (From: Ross Hayden <email@hidden>)

  • Prev by Date: Re: Simple Network Client Design (newbie alert)
  • Next by Date: extra window
  • Previous by thread: Re: Simple Network Client Design (newbie alert)
  • Next by thread: Re: Simple Network Client Design (newbie alert)
  • Index(es):
    • Date
    • Thread