mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 23:40:55 +00:00
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:
parent
3d611ba66c
commit
cdabc4082d
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
2003-07-04 Richard Frith-Macdonald <rfm@gnu.org>
|
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>
|
2003-07-03 01:43 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
|
|
@ -960,9 +960,11 @@ static NSMapTable *mimeMap = NULL;
|
||||||
if (RETAIN((id)the_server) != nil)
|
if (RETAIN((id)the_server) != nil)
|
||||||
{
|
{
|
||||||
NSConnection *conn = [(id)the_server connectionForProxy];
|
NSConnection *conn = [(id)the_server connectionForProxy];
|
||||||
|
#if 0 // When compilers work!
|
||||||
Protocol *p = @protocol(GSPasteboardSvr);
|
Protocol *p = @protocol(GSPasteboardSvr);
|
||||||
|
|
||||||
[(id)the_server setProtocolForProxy: p];
|
[(id)the_server setProtocolForProxy: p];
|
||||||
|
#endif
|
||||||
[[NSNotificationCenter defaultCenter]
|
[[NSNotificationCenter defaultCenter]
|
||||||
addObserver: self
|
addObserver: self
|
||||||
selector: @selector(_lostServer:)
|
selector: @selector(_lostServer:)
|
||||||
|
@ -1113,12 +1115,14 @@ static NSMapTable *mimeMap = NULL;
|
||||||
{
|
{
|
||||||
NSPasteboard *ret;
|
NSPasteboard *ret;
|
||||||
|
|
||||||
|
#if 0 // When compilers work
|
||||||
if ([(id)anObj isProxy] == YES)
|
if ([(id)anObj isProxy] == YES)
|
||||||
{
|
{
|
||||||
Protocol *p = @protocol(GSPasteboardObj);
|
Protocol *p = @protocol(GSPasteboardObj);
|
||||||
|
|
||||||
[(id)anObj setProtocolForProxy: p];
|
[(id)anObj setProtocolForProxy: p];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
ret = [self _pasteboardWithTarget: anObj name: aName];
|
ret = [self _pasteboardWithTarget: anObj name: aName];
|
||||||
NS_VALRETURN(ret);
|
NS_VALRETURN(ret);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue