mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Change the way the init method works
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15886 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
95e06d6dbf
commit
d1db6f36bb
2 changed files with 7 additions and 4 deletions
|
@ -770,13 +770,14 @@ static BOOL multi_threaded = NO;
|
|||
}
|
||||
|
||||
/**
|
||||
* Undocumented feature of OPENSTEP/MacOS-X
|
||||
* -init returns the default connection.
|
||||
* Return a connection able to act as a server receive incoming requests.
|
||||
*/
|
||||
- (id) init
|
||||
{
|
||||
RELEASE(self);
|
||||
return RETAIN([connectionClass defaultConnection]);
|
||||
NSPort *port = [NSPort port];
|
||||
|
||||
self = [self initWithReceivePort: port sendPort: nil];
|
||||
return self;
|
||||
}
|
||||
|
||||
/** <init />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue