Update for new runtime api

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32241 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-20 08:32:54 +00:00
parent c7eeb1bb08
commit 0cb48d516b
7 changed files with 46 additions and 29 deletions

View file

@ -102,9 +102,10 @@ extern BOOL __objc_responds_to(id, SEL);
[NSException raise: NSInvalidArgumentException
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
/*
* Since 'self' is an class, get_imp() will get the instance method.
* Since 'self' is an class, class_getMethodImplementation() will get
* the instance method.
*/
return get_imp((Class)self, aSelector);
return class_getMethodImplementation((Class)self, aSelector);
}
/**
@ -137,7 +138,7 @@ extern BOOL __objc_responds_to(id, SEL);
[NSException raise: NSInvalidArgumentException
format: @"%@ null selector given", NSStringFromSelector(_cmd)];
return get_imp(object_getClass((id)self), aSelector);
return class_getMethodImplementation(object_getClass((id)self), aSelector);
}
/**
@ -475,10 +476,10 @@ extern BOOL __objc_responds_to(id, SEL);
{
proxyClass = [NSDistantObject class];
/*
* use get_imp() because NSDistantObject doesn't implement
* methodForSelector:
* use class_getMethodImplementation() because NSDistantObject
* doesn't implement methodForSelector:
*/
proxyImp = get_imp(object_getClass((id)proxyClass),
proxyImp = class_getMethodImplementation(object_getClass((id)proxyClass),
@selector(proxyWithLocal:connection:));
}