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:
Richard Frith-Macdonald 2003-02-05 12:55:02 +00:00
parent 7e489c8612
commit 882a348aba
2 changed files with 7 additions and 4 deletions

View file

@ -3,6 +3,8 @@
* Sourcewin32-def.top: Manually added external functions.
* Source/libgnustep-base.def.in: Regenerated to combine external
functions and all public classes.
* Source/NSConnection.m: ([-init]) creates a connection usable as
a server.
2003-02-04 Richard Frith-Macdonald <rfm@gnu.org>

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