register new selector as needed.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31179 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-08-17 18:38:00 +00:00
parent 821a21b54d
commit e7310bea03
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,8 @@
* Source/NSObject.m:
* Source/NSDistantObject.m:
Return nil from (methodSignatureForSelector:) if the selector is null.
* Source/NSObjcRuntime.m:
Register new selector as needed.
2010-08-17 Wolfgang Lux <wolfgang.lux@gmail.com>

View file

@ -74,7 +74,7 @@ NSStringFromSelector(SEL aSelector)
}
/**
* Returns the selector whose name is supplied in the
* Returns (creating if necessary) the selector whose name is supplied in the
* aSelectorName argument, or 0 if a nil string is supplied.
*/
SEL
@ -88,7 +88,7 @@ NSSelectorFromString(NSString *aSelectorName)
[aSelectorName getCString: buf
maxLength: len + 1
encoding: NSASCIIStringEncoding];
return GSSelectorFromName (buf);
return sel_registerName (buf);
}
return (SEL)0;
}