Include <Foundation/NSString.h> instead of <gnustep/base/String.h>.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2049 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1997-01-12 19:28:07 +00:00
parent b4c1736069
commit 36f6b0301d
4 changed files with 9 additions and 7 deletions

View file

@ -2,7 +2,7 @@
#include <gnustep/base/Connection.h> #include <gnustep/base/Connection.h>
#include <gnustep/base/Proxy.h> #include <gnustep/base/Proxy.h>
#include "first-server.h" #include "first-server.h"
#include <gnustep/base/String.h> #include <Foundation/NSString.h>
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
@ -13,7 +13,7 @@ int main(int argc, char *argv[])
printf("Looking for connection named `firstserver' on host `%s'...\n", printf("Looking for connection named `firstserver' on host `%s'...\n",
argv[2]); argv[2]);
s = [Connection rootProxyAtName:@"firstserver" s = [Connection rootProxyAtName:@"firstserver"
onHost:[String stringWithCString:argv[2]]]; onHost:[NSString stringWithCString:argv[2]]];
} }
else else
{ {

View file

@ -1,7 +1,7 @@
#include <gnustep/base/Connection.h> #include <gnustep/base/Connection.h>
#include "first-server.h" #include "first-server.h"
#include <gnustep/base/String.h> #include <Foundation/NSString.h>
#include <gnustep/base/RunLoop.h> #include <gnustep/base/RunLoop.h>
#include <sys/file.h> #include <sys/file.h>

View file

@ -1,5 +1,5 @@
#include "second-client.h" #include "second-client.h"
#include <gnustep/base/String.h> #include <Foundation/NSString.h>
#include <gnustep/base/Notification.h> #include <gnustep/base/Notification.h>
#include <gnustep/base/Invocation.h> #include <gnustep/base/Invocation.h>
#include <gnustep/base/RunLoop.h> #include <gnustep/base/RunLoop.h>
@ -25,7 +25,8 @@ int main(int argc, char *argv[])
printf("Looking up server object on localhost with name `secondserver'\n"); printf("Looking up server object on localhost with name `secondserver'\n");
if (argc > 1) if (argc > 1)
server = [Connection rootProxyAtName: [String stringWithCString: argv[1]]]; server = [Connection rootProxyAtName:
[NSString stringWithCString: argv[1]]];
else else
server = [Connection rootProxyAtName: @"secondserver"]; server = [Connection rootProxyAtName: @"secondserver"];
printf("Found server.\n"); printf("Found server.\n");

View file

@ -2,7 +2,7 @@
#include "second-client.h" #include "second-client.h"
#include <gnustep/base/Connection.h> #include <gnustep/base/Connection.h>
#include <gnustep/base/TcpPort.h> #include <gnustep/base/TcpPort.h>
#include <gnustep/base/String.h> #include <Foundation/NSString.h>
#include <gnustep/base/Notification.h> #include <gnustep/base/Notification.h>
#include <gnustep/base/Invocation.h> #include <gnustep/base/Invocation.h>
@ -128,7 +128,8 @@ int main(int argc, char *argv[])
if (argc > 1) if (argc > 1)
{ {
c = [Connection newRegisteringAtName: [String stringWithCString: argv[1]] c = [Connection newRegisteringAtName:
[NSString stringWithCString: argv[1]]
withRootObject:s]; withRootObject:s];
printf("Regsitered server object on localhost with " printf("Regsitered server object on localhost with "
"name `%s'\n", argv[1]); "name `%s'\n", argv[1]);