mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 12:55:44 +00:00
* 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:
parent
af11d67d48
commit
2ae0612f8b
2 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue