Re: Simple Network Client Design (newbie alert)
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