mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
7e489c8612
commit
882a348aba
2 changed files with 7 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue