mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
__objc_responds_to() -> class_respondsToSelector().
No functionality change, just a switch to using the portable public functions. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32863 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
88cd94d250
commit
7c427b04d6
1 changed files with 2 additions and 6 deletions
|
@ -36,10 +36,6 @@
|
|||
|
||||
@class NSDistantObject;
|
||||
|
||||
#ifndef NeXT_RUNTIME
|
||||
extern BOOL __objc_responds_to(id, SEL);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* <p>The NSProxy class provides a basic implementation of a class whose
|
||||
* instances are used to <em>stand in</em> for other objects.<br />
|
||||
|
@ -178,7 +174,7 @@ extern BOOL __objc_responds_to(id, SEL);
|
|||
*/
|
||||
+ (BOOL) respondsToSelector: (SEL)aSelector
|
||||
{
|
||||
if (__objc_responds_to(self, aSelector))
|
||||
if (class_respondsToSelector(object_getClass(self), aSelector))
|
||||
return YES;
|
||||
else
|
||||
return NO;
|
||||
|
@ -497,7 +493,7 @@ extern BOOL __objc_responds_to(id, SEL);
|
|||
{
|
||||
return NO;
|
||||
}
|
||||
if (__objc_responds_to(self, aSelector))
|
||||
if (class_respondsToSelector(object_getClass(self), aSelector))
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue