mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-21 02:31:01 +00:00
Fixed implementorsOf: to accept also STSelector argument (#symbol in Smalltalk)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@14980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
50ce3dfbd7
commit
cc7ce2e97d
1 changed files with 6 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
|||
#import <objc/objc-api.h>
|
||||
|
||||
#import <StepTalk/STObjCRuntime.h>
|
||||
#import <StepTalk/STSelector.h>
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
@ -92,7 +93,7 @@ static ObjectiveCRuntime *sharedRuntime=nil;
|
|||
return [NSArray arrayWithArray:sels];
|
||||
}
|
||||
|
||||
- (NSArray *)implementorsOfSelector:(NSString *)selector
|
||||
- (NSArray *)implementorsOfSelector:(id)selector
|
||||
{
|
||||
NSMutableArray *array = [NSMutableArray array];
|
||||
NSEnumerator *enumerator;
|
||||
|
@ -102,6 +103,10 @@ static ObjectiveCRuntime *sharedRuntime=nil;
|
|||
Class class;
|
||||
|
||||
enumerator = [classes keyEnumerator];
|
||||
if([selector isKindOfClass:[STSelector class]])
|
||||
{
|
||||
selector = [selector stringValue];
|
||||
}
|
||||
|
||||
while( (className = [enumerator nextObject]) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue