Make last change conditionally compiled

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17103 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-07-04 15:12:45 +00:00
parent 3d611ba66c
commit cdabc4082d
2 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,8 @@
2003-07-04 Richard Frith-Macdonald <rfm@gnu.org>
* 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 <alexander@malmberg.org>

View file

@ -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);
}