diff --git a/Source/GNUmakefile b/Source/GNUmakefile index b44ce0604..f0182a6f4 100644 --- a/Source/GNUmakefile +++ b/Source/GNUmakefile @@ -209,6 +209,7 @@ AppKit/nsimage-tiff.h \ AppKit/GSMethodTable.h \ AppKit/DPSOperators.h \ AppKit/PSOperators.h \ +AppKit/GSPasteboardServer.h \ AppKit/GSServicesManager.h -include GNUmakefile.preamble diff --git a/Source/NSPasteboard.m b/Source/NSPasteboard.m index 3f1c7e558..56546b250 100644 --- a/Source/NSPasteboard.m +++ b/Source/NSPasteboard.m @@ -4,7 +4,7 @@ Description... Implementation of class for communicating with the pasteboard server. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997,1999 Free Software Foundation, Inc. Author: Richard Frith-Macdonald Date: 1997 @@ -31,7 +31,6 @@ #include #include #include -#include "../Tools/PasteboardServer.h" #include #include #include @@ -49,12 +48,14 @@ #include #include +#include + #define stringify_it(X) #X #define prog_path(X) stringify_it(X) "/Tools/gpbs" @interface NSPasteboard (Private) -+ (id) _pbs; -+ (NSPasteboard*) _pasteboardWithTarget: (id)aTarget ++ (id) _pbs; ++ (NSPasteboard*) _pasteboardWithTarget: (id)aTarget name: (NSString*)aName; - (id) _target; @end @@ -63,7 +64,7 @@ static NSLock *dictionary_lock = nil; static NSMutableDictionary *pasteboards = nil; -static id the_server = nil; +static id the_server = nil; // @@ -92,7 +93,7 @@ static id the_server = nil; return self; } -+ (id) _pbs ++ (id) _pbs { if (the_server == nil) { @@ -103,7 +104,7 @@ static id the_server = nil; { host = [[NSProcessInfo processInfo] hostName]; } - the_server = (id)[NSConnection + the_server = (id)[NSConnection rootProxyForConnectionWithRegisteredName: PBSNAME host: host]; if ([(id)the_server retain]) @@ -150,7 +151,7 @@ static id the_server = nil; // // Creating and Releasing an NSPasteboard Object // -+ (NSPasteboard*) _pasteboardWithTarget: (id)aTarget ++ (NSPasteboard*) _pasteboardWithTarget: (id)aTarget name: (NSString*)aName { NSPasteboard* p = nil; @@ -206,7 +207,7 @@ static id the_server = nil; { NS_DURING { - id anObj; + id anObj; anObj = [[self _pbs] pasteboardWithName: aName]; if (anObj) { @@ -230,7 +231,7 @@ static id the_server = nil; { NS_DURING { - id anObj; + id anObj; anObj = [[self _pbs] pasteboardWithUniqueName]; if (anObj) { @@ -263,7 +264,7 @@ static id the_server = nil; { NS_DURING { - id anObj; + id anObj; anObj = [[self _pbs] pasteboardByFilteringData: data ofType: type @@ -297,7 +298,7 @@ static id the_server = nil; NS_DURING { - id anObj; + id anObj; anObj = [[self _pbs] pasteboardByFilteringData: data ofType: type @@ -328,7 +329,7 @@ static id the_server = nil; { NS_DURING { - id anObj; + id anObj; anObj = [pboard _target]; if (anObj) {