This is kpathseaView.m in view mode; [Download] [Up]
#import "kpathseaView.h"
@implementation kpathseaView
- appDidInit:sender
{
/* The fact that no one is registered, means that we are going to
* be the server. So, we register our connection
*
* The server understands the client protocol also
* but these are the most common messages
*/
[[scrollers window] setTitle: "Voting Server"];
ourServer = [NXConnection registerRoot: self withName:"VoteTally"];
/*
* we take ourServer, which represets the NXConnection objec that
* will handle all our proxys (?) and make ourselves the handler for
* errors for that object. Then we run from appkit.
*
* The case for the voting server makes sense. We need to run from
* appkit so that we can server all the clients.
*
* The case for the clients is not as clear. We register the
* NXConnection that is behind our connection to the vote server
* so that the server, which will have our ID will be able to talk
* back without the client having initiated the connection. This is
* NOT OBVIOUS from the PR1 docs
*/
return self;
}
- addtext:sender
{
return self;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.