mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
97190ff47f
commit
aaaf89c396
7 changed files with 124 additions and 478 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue