mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Merged 1.0 branch into main.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d2dd19d498
commit
ab320f7bb0
42 changed files with 1313 additions and 514 deletions
|
@ -756,14 +756,29 @@ static BOOL deallocNotifications = NO;
|
|||
const char *types;
|
||||
struct objc_method *mth;
|
||||
|
||||
if (aSelector == 0)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
mth = (GSObjCIsInstance(self)
|
||||
? class_get_instance_method(GSObjCClass(self), aSelector)
|
||||
: class_get_class_method(GSObjCClass(self), aSelector));
|
||||
if (mth == 0)
|
||||
{
|
||||
types = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
types = mth->method_types;
|
||||
}
|
||||
if (types == 0)
|
||||
{
|
||||
types = aSelector->sel_types;
|
||||
}
|
||||
if (types == 0)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
types = mth->method_types;
|
||||
return [NSMethodSignature signatureWithObjCTypes: types];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue