Re: Distributed object vending problem

2010-09-22 Thread Kirk Kerekes
Others seem to have found http://www.thotzy.com/THOTZY/Distributed_Objects_Demo.html -- to be useful. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Distributed object vending problem

2010-09-20 Thread Ken Tozier
Hi I'm writing two apps: A server and client and am having some trouble figuring exactly what to link to in the client program. The server application has a main class that has dozens of dependencies. I don't want to have to import all the server app dependencies into the client application as

re; Distributed object vending problem

2010-09-20 Thread Kirk Kerekes
How do I send messages to a server's vended object without having to include the server's entire dependency tree? Incorporate the methods that you actually need for remote interaction into a protocol that is defined in a separate .h file, and #import it at both ends of the connection. You

Re: Distributed object vending problem

2010-09-20 Thread Ken Thomases
On Sep 18, 2010, at 11:14 AM, Ken Tozier wrote: I'm writing two apps: A server and client and am having some trouble figuring exactly what to link to in the client program. The server application has a main class that has dozens of dependencies. I don't want to have to import all the

Re: Distributed object vending problem

2010-09-20 Thread Ken Tozier
Thanks Laurent. I followed the DO instructions here: http://www.informit.com/articles/article.aspx?p=1438422seqNum=3 but can't seem to get a connection to the server from my client app. Here's how I'm setting up the listener connection for the server server = [NSConnection new]; [server

Re: Distributed object vending problem

2010-09-20 Thread Ken Thomases
On Sep 20, 2010, at 4:14 AM, Ken Tozier wrote: server: (** NSConnection 0x114720 receivePort NSMachPort: 0x114850 sendPort NSMachPort: 0x114850 refCount 1 **) Ultimately, the client and server will need to work on different machines on a network, thus the call to [NSSocketPortNameServer