Make OPENSTEP complient

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-07-03 13:19:11 +00:00
parent 131d16d29b
commit a3c6fd3651
2 changed files with 14 additions and 9 deletions

View file

@ -1,3 +1,7 @@
2000-07-03 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/gpbs.m: Fix for OPENSTEP complient DO
2000-07-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSFileWrapper.m

View file

@ -840,8 +840,9 @@ NSMutableDictionary *pasteboards = nil;
{
NSMutableArray* permenant;
}
- (NSConnection*) connection: ancestor didConnect: newConn;
- connectionBecameInvalid: notification;
- (BOOL) connection: (NSConnection*)ancestor
shouldMakeNewConnection: (NSConnection*)newConn;
- (id) connectionBecameInvalid: (NSNotification*)notification;
- (id<GSPasteboardObj>) pasteboardByFilteringData: (NSData*)data
ofType: (NSString*)type
@ -854,7 +855,8 @@ NSMutableDictionary *pasteboards = nil;
@implementation PasteboardServer
- (NSConnection*) connection: ancestor didConnect: newConn
- (BOOL) connection: (NSConnection*)ancestor
shouldMakeNewConnection: (NSConnection*)newConn
{
[[NSNotificationCenter defaultCenter]
addObserver: self
@ -862,7 +864,7 @@ NSMutableDictionary *pasteboards = nil;
name: NSConnectionDidDieNotification
object: newConn];
[newConn setDelegate: self];
return newConn;
return YES;
}
- (id) connectionBecameInvalid: (NSNotification*)notification
@ -1051,16 +1053,15 @@ main(int argc, char** argv, char **env)
}
/* Register a connection that provides the server object to the network */
conn = [NSConnection newRegisteringAtName:PBSNAME
withRootObject:server];
if (conn == nil)
conn = [NSConnection defaultConnection];
[conn setRootobject: server];
if ([conn registerName: PBSNAME] == NO)
{
NSLog(@"Unable to register with name server.\n");
exit(1);
}
[conn setDelegate:server];
[conn setDelegate: server];
[[NSNotificationCenter defaultCenter]
addObserver: server
selector: @selector(connectionBecameInvalid:)