From cdabc4082daf1a3654e17c7e14f0b546b7095a2e Mon Sep 17 00:00:00 2001 From: CaS Date: Fri, 4 Jul 2003 15:12:45 +0000 Subject: [PATCH] Make last change conditionally compiled git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17103 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 +++- Source/NSPasteboard.m | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b950579a1..837d21ca0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2003-07-04 Richard Frith-Macdonald - * Source/NSPasteboard.m: Set protocols for proxy objects. + * Source/NSPasteboard.m: Add conditionally compiled code to + set protocols for proxy objects. Let's use it when we have + no compilers which break on this. 2003-07-03 01:43 Alexander Malmberg diff --git a/Source/NSPasteboard.m b/Source/NSPasteboard.m index 659a2f41b..1e82f0796 100644 --- a/Source/NSPasteboard.m +++ b/Source/NSPasteboard.m @@ -960,9 +960,11 @@ static NSMapTable *mimeMap = NULL; if (RETAIN((id)the_server) != nil) { NSConnection *conn = [(id)the_server connectionForProxy]; +#if 0 // When compilers work! Protocol *p = @protocol(GSPasteboardSvr); [(id)the_server setProtocolForProxy: p]; +#endif [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(_lostServer:) @@ -1113,12 +1115,14 @@ static NSMapTable *mimeMap = NULL; { NSPasteboard *ret; +#if 0 // When compilers work if ([(id)anObj isProxy] == YES) { Protocol *p = @protocol(GSPasteboardObj); [(id)anObj setProtocolForProxy: p]; } +#endif ret = [self _pasteboardWithTarget: anObj name: aName]; NS_VALRETURN(ret); }