mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +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
|
@ -3,6 +3,8 @@
|
||||||
* Source/NSObject.m:
|
* Source/NSObject.m:
|
||||||
* Source/NSDistantObject.m:
|
* Source/NSDistantObject.m:
|
||||||
Return nil from (methodSignatureForSelector:) if the selector is null.
|
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>
|
2010-08-17 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
|
|
@ -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.
|
* aSelectorName argument, or 0 if a nil string is supplied.
|
||||||
*/
|
*/
|
||||||
SEL
|
SEL
|
||||||
|
@ -88,7 +88,7 @@ NSSelectorFromString(NSString *aSelectorName)
|
||||||
[aSelectorName getCString: buf
|
[aSelectorName getCString: buf
|
||||||
maxLength: len + 1
|
maxLength: len + 1
|
||||||
encoding: NSASCIIStringEncoding];
|
encoding: NSASCIIStringEncoding];
|
||||||
return GSSelectorFromName (buf);
|
return sel_registerName (buf);
|
||||||
}
|
}
|
||||||
return (SEL)0;
|
return (SEL)0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue