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:
CaS 2003-02-05 12:55:02 +00:00
parent 95e06d6dbf
commit d1db6f36bb
2 changed files with 7 additions and 4 deletions

View file

@ -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 />