* EOControl/EOFault.m: added instanceMethodForSelector:

to temporary fix defaulting problem with
NSAutoreleasePool optimizations


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20917 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2005-03-17 14:57:28 +00:00
parent af11d67d48
commit 2ae0612f8b
2 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-03-17 Manuel Guesdon <mguesdon@orange-concept.com>
* EOControl/EOFault.m: added instanceMethodForSelector:
to temporary fix defaulting problem with
NSAutoreleasePool optimizations
2005-03-10 David Ayers <d.ayers@inode.at>
* EOControl/EOKeyValueCoding: (-unableToSetNullForKey:): Deprecate

View file

@ -145,6 +145,24 @@ static Class EOFaultClass = NULL;
return (GSGetMethod(self, sel, NO, YES) != (GSMethod)0);
}
/**
* Returns a pointer to the C function implementing the method used
* to respond to messages with aSelector by instances of the receiving
* class.
* <br />Raises NSInvalidArgumentException if given a null selector.
*
* It's a temporary fix to support NSAutoreleasePool optimization
*/
+ (IMP) instanceMethodForSelector: (SEL)aSelector
{
if (aSelector == 0)
[NSException raise: NSInvalidArgumentException
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
/*
* Since 'self' is an class, get_imp() will get the instance method.
*/
return get_imp((Class)self, aSelector);
}
// Fault class methods