mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-21 02:31:01 +00:00
Merge pull request #1 from iamleeg/documentation-update
Documentation update
This commit is contained in:
commit
b8def7f876
4 changed files with 20 additions and 10 deletions
|
@ -1,3 +1,11 @@
|
|||
2018-03-20 Graham Lee <graham@iamleeg.com>
|
||||
|
||||
* Documentation/HowTo.txt: Document methods that still exist.
|
||||
|
||||
* Frameworks/StepTalk/STEngine.m (engineForLanguageWithName:):
|
||||
* Languages/Smalltalk/SmalltalkEngine.m (multiple methods):
|
||||
Correct spelling of 'deprecated' in log messages.
|
||||
|
||||
2018-02-18 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STObjCRuntime.m (selector_types): Fix for
|
||||
|
|
|
@ -11,9 +11,11 @@ How to create scripting environment?
|
|||
|
||||
STEnvironment *env;
|
||||
|
||||
env = [STEnvironment defaultScriptingEnvironment];
|
||||
env = [STEnvironment sharedEnvironment];
|
||||
or
|
||||
env = [STEnvironment environmentWithDescriptionName:envName];
|
||||
env = [STEnvironment environmentWithDefaultDescription];
|
||||
or
|
||||
env = [STEnvironment environmentWithDescription:description];
|
||||
|
||||
|
||||
How to register named objects in the scripting environment?
|
||||
|
@ -25,16 +27,16 @@ like in:
|
|||
|
||||
[env setObject:transcript forName:@"Transcript"];
|
||||
|
||||
See: STEnvironment
|
||||
See: STEnvironment, STContext
|
||||
|
||||
How to create a scripting engine?
|
||||
---------------------------------
|
||||
|
||||
STEngine *engine;
|
||||
|
||||
engine = [STEngine engineForLanguageWithName:langName];
|
||||
engine = [STEngine engineForLanguage:langName];
|
||||
|
||||
See: STLanguage, STEngine
|
||||
See: STLanguageManager, STEngine
|
||||
|
||||
How to execute a code?
|
||||
--------------------
|
||||
|
@ -43,7 +45,7 @@ How to execute a code?
|
|||
id result;
|
||||
|
||||
NS_DURING
|
||||
result = [engine executeCode:string inEnvironment:env];
|
||||
result = [engine interpretScript:string inContext:env];
|
||||
NS_HANDLER
|
||||
/* handle the exception */
|
||||
NS_ENDHANDLER
|
||||
|
|
|
@ -82,7 +82,7 @@ void _STInitMallocZone(void)
|
|||
|
||||
+ (STEngine *) engineForLanguageWithName:(NSString *)name
|
||||
{
|
||||
NSLog(@"%@ %@ is depreciated, use %@ instead",
|
||||
NSLog(@"%@ %@ is deprecated, use %@ instead",
|
||||
[self className], NSStringFromSelector(_cmd), @"engineForLanguage:");
|
||||
|
||||
return [self engineForLanguage:name];
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
- (id) executeCode:(NSString *)sourceCode
|
||||
inEnvironment:(STEnvironment *)env
|
||||
{
|
||||
NSLog(@"%@ is depreciated, use interpretScript:inContext: instead",
|
||||
NSLog(@"%@ is deprecated, use interpretScript:inContext: instead",
|
||||
NSStringFromSelector(_cmd));
|
||||
return [self interpretScript:sourceCode inContext:env];
|
||||
}
|
||||
|
@ -90,7 +90,7 @@
|
|||
forReceiver:(id)receiver
|
||||
inEnvironment:(STEnvironment *)env
|
||||
{
|
||||
NSLog(@"%@ is depreciated, use methodFromSource:forReceiver:inContext: instead",
|
||||
NSLog(@"%@ is deprecated, use methodFromSource:forReceiver:inContext: instead",
|
||||
NSStringFromSelector(_cmd));
|
||||
return [self methodFromSource:sourceString
|
||||
forReceiver:receiver
|
||||
|
@ -116,7 +116,7 @@
|
|||
withArguments:(NSArray *)args
|
||||
inEnvironment:(STEnvironment *)env
|
||||
{
|
||||
NSLog(@"%@ is depreciated, use ...inContext: instead",
|
||||
NSLog(@"%@ is deprecated, use ...inContext: instead",
|
||||
NSStringFromSelector(_cmd));
|
||||
return [self executeMethod:aMethod
|
||||
forReceiver:anObject
|
||||
|
|
Loading…
Reference in a new issue