mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
fbbfb632c8
commit
34f55e74fe
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue