Various updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3473 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-12-16 20:32:59 +00:00
parent 97190ff47f
commit aaaf89c396
7 changed files with 124 additions and 478 deletions

View file

@ -831,15 +831,25 @@ static int messages_received_count;
with that name. */
+ (NSConnection*) newRegisteringAtName: (NSString*)n withRootObject: anObj
{
return [self newRegisteringAtName: n
atPort: 0
withRootObject: anObj];
}
+ (NSConnection*) newRegisteringAtName: (NSString*)n
atPort: (int)p
withRootObject: anObj
{
id newPort;
id newConn;
newPort = [default_receive_port_class newForReceivingFromRegisteredName: n];
newConn = [self newForInPort:[newPort autorelease]
outPort:nil
ancestorConnection:nil];
[self setRootObject:anObj forInPort:newPort];
newPort = [default_receive_port_class newForReceivingFromRegisteredName: n
fromPort: p];
newConn = [self newForInPort: [newPort autorelease]
outPort: nil
ancestorConnection: nil];
[self setRootObject: anObj forInPort: newPort];
return newConn;
}