mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
050f3f7190
commit
d32eb0e985
7 changed files with 46 additions and 29 deletions
|
@ -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:));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue