GDNC fixups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13061 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-03-09 19:18:20 +00:00
parent 07c3450559
commit cb88572642
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2002-03-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSDistributedNotificationCentre.m: Try alternative name for
server if NSHost is specified ...in case it is running on another host.
Sat Mar 9 12:02:45 2002 Adam Fedor <fedor@yogi.doc.com>
* configure.in: Change constant string to FooConstantString

View file

@ -400,8 +400,14 @@ NSLog(@"Connection to GDNC server established.\n");
}
else
{
[NSException raise: NSInternalInconsistencyException
format: @"unable to contact GDNC server on %@", host];
_remote = [NSConnection rootProxyForConnectionWithRegisteredName:
[GDNC_SERVICE stringByAppendingFormat: @"-%@", host] host: @"*"];
if (_remote == nil)
{
[NSException raise: NSInternalInconsistencyException
format: @"unable to contact GDNC server for %@", host];
}
RETAIN(_remote);
}
}
}