* EOControl/EOFault.m ([+initialize]): Handle runtimes

that do not implement forward:: on NSObject.
	([-forward]): Update comment.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26237 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2008-03-07 11:09:35 +00:00
parent d93b8f2b45
commit 52c697cd6c
2 changed files with 18 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2008-03-07 Tim McIntosh <tmcintos@avalon.net>
* EOControl/EOFault.m ([+initialize]): Handle runtimes
that do not implement forward:: on NSObject.
([-forward]): Update comment.
2008-03-07 Matt Rice <ratmice@gmail.com>
* Documentation/GDL2Intro/Examples/GNUmakefile: Link in EOAccess and

View file

@ -85,11 +85,14 @@ static Class EOFaultClass = NULL;
GSMethod nsfwd = GSGetMethod([NSObject class],
@selector(forward::),
YES,NO);
GSMethod eofwd = GSGetMethod(self,
@selector(forward::),
YES,NO);
eofwd->method_imp = nsfwd->method_imp;
GSFlushMethodCacheForClass(self);
if (nsfwd != NULL)
{
GSMethod eofwd = GSGetMethod(self,
@selector(forward::),
YES,NO);
eofwd->method_imp = nsfwd->method_imp;
GSFlushMethodCacheForClass(self);
}
EOFaultClass = [EOFault class];
}
@ -487,7 +490,10 @@ static Class EOFaultClass = NULL;
}
/**
* This method is replaced by the current implementation of NSObject.
* This method is replaced by the current implementation of NSObject (if any).
*
* It is assumed that this method will not be called if NSObject does not
* implement it.
*/
- (retval_t)forward: (SEL)selector
: (arglist_t)args