NSInvocation update

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@16924 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Stefan Urbanek 2003-06-15 08:19:07 +00:00
parent 00706506d3
commit a35dd9004c
5 changed files with 27 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2003 Jun 15
* NSInvocation+additions: added unknown selector creation
2003 May 11 Stefan Urbanek <urbanek@host.sk>
* Fixed linking of some bundles

View file

@ -379,8 +379,9 @@ static Class NSInvocation_class = nil;
* ----------------------------
*/
NSDebugLLog(@"STSending",@" invoking... (%@)",invocation);
NSDebugLLog(@"STSending",@" invoking... (%@ %s)",invocation, [[invocation methodSignature] methodReturnType]);
[invocation invoke];
NSDebugLLog(@"STSending",@" done invoking.",invocation);
/* FIXME */
if(!stopRequested)

2
README
View file

@ -46,6 +46,8 @@ If something goes wrong while build process and it is not while building in the
Source directory, then try to do make and make install in that directory first.
In any case of problem, do not hesitate to contact the author.
StepTalk Shell is included in Examples/Shell directory. It requires libncurses.
Tools
-----
stexec - execute a StepTalk script in the GNUstep Foundation environment

View file

@ -201,7 +201,23 @@ void STGetValueOfTypeFromObject(void *value, const char *type, id anObject)
NSInvocation *invocation;
SEL sel;
sel = STSelectorFromString(selectorName);
sel = NSSelectorFromString(selectorName);
if(!sel)
{
NSLog(@"REG REQIRED");
char *name = [selectorName cString];
sel = sel_register_name(name);
if(!sel)
{
[NSException raise:STInternalInconsistencyException
format:@"Unable to register selector '%@'",
selectorName];
return NULL;
}
}
signature = [target methodSignatureForSelector:sel];

3
WISH
View file

@ -41,7 +41,8 @@ Language and Interaction
1. Every thing is an object
2. Objects are communicating by sending messages
Objects are 'nouns' and messages are 'verbs' of a language.
"Objects are 'nouns' and messages are 'verbs' of a language. ", to add a
famous quote.
Nouns in a (scripting) language are objects with name. That name usually
depends on the context it is present or it should be globally well known