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:
rfm 2010-08-17 18:38:00 +00:00
parent fbbfb632c8
commit 34f55e74fe
2 changed files with 4 additions and 2 deletions

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;
}