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:
Stefan Urbanek 2002-11-11 21:58:56 +00:00
parent 50ce3dfbd7
commit cc7ce2e97d

View file

@ -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]) )
{