mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-04-22 05:40:53 +00:00
Compare commits
181 commits
pre-header
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
c4edd15418 | ||
|
24f4aa5aab | ||
|
50bea91ee5 | ||
|
34bf3a32c1 | ||
|
cfc2540b25 | ||
|
81702d35bd | ||
|
af7d12cdcf | ||
|
8d856d505e | ||
|
5b7d8c1cf1 | ||
|
9e2fca4a0d | ||
|
a8c10032c8 | ||
|
1682f849a4 | ||
|
232d35f218 | ||
|
c31a7dc5e9 | ||
|
ed62d8d758 | ||
|
1a6660563e | ||
|
93caa89228 | ||
|
9a3eef25c5 | ||
|
09841d976e | ||
|
f3ce2b7f32 | ||
|
b8def7f876 | ||
|
7c6cfec2d7 | ||
|
705e29eb3c | ||
|
a75c831f18 | ||
|
7dfa6d4d61 | ||
|
fdce6b2210 | ||
|
3967d6a602 | ||
|
5d1d318e4b | ||
|
aa77c8c9b4 | ||
|
37e2cfb6cc | ||
|
e40cb9b45e | ||
|
003925e334 | ||
|
c3b1467afe | ||
|
78991ff299 | ||
|
2e01989552 | ||
|
5e87e76a79 | ||
|
54ff99c389 | ||
|
cf50d0e507 | ||
|
e352e229d5 | ||
|
51b17b1ba5 | ||
|
8b6c53712c | ||
|
a58da09aa0 | ||
|
27f1ac7524 | ||
|
779c0b47c4 | ||
|
66bd2c33fe | ||
|
fad9c634f1 | ||
|
70936d6e15 | ||
|
254398ccdf | ||
|
0e94ff5bac | ||
|
bfed68b1c3 | ||
|
4298e255e7 | ||
|
c046955909 | ||
|
9f13e69a41 | ||
|
b4b2bf3891 | ||
|
f1d9694b1c | ||
|
41047a6341 | ||
|
314a9945b2 | ||
|
fe46a9e113 | ||
|
3f8eeb9ff0 | ||
|
7532ab371a | ||
|
ba12bd3874 | ||
|
9576ab41c4 | ||
|
be39511ed8 | ||
|
66076e8c6e | ||
|
9feb26b63c | ||
|
5cfb99c758 | ||
|
ac8fc9cbb6 | ||
|
b7a0150e02 | ||
|
1fc2e5fb63 | ||
|
fd46046983 | ||
|
b5aeea6a29 | ||
|
9b35f05577 | ||
|
760bbb4b83 | ||
|
d51cc43755 | ||
|
81df64e7ab | ||
|
fa9b3747b1 | ||
|
3e7c37d9b3 | ||
|
a31258c1d1 | ||
|
484ff95559 | ||
|
e180a533b2 | ||
|
303e860924 | ||
|
94d605787c | ||
|
6ed2e062bc | ||
|
ea1fed4269 | ||
|
f683714c79 | ||
|
c1a084a1c8 | ||
|
903e11ce23 | ||
|
43359d0766 | ||
|
2da0d9a1bc | ||
|
91ca747a02 | ||
|
f7b199f99b | ||
|
939fecc187 | ||
|
63f3940bee | ||
|
0a390f4c14 | ||
|
ceaed8ae36 | ||
|
64fad794f3 | ||
|
77ed0deda7 | ||
|
520c66f605 | ||
|
4c834cc46f | ||
|
2dc8f7f786 | ||
|
69646308b3 | ||
|
7f4a3ef104 | ||
|
8d9a72b4fb | ||
|
6c3d7354ef | ||
|
f59cb2fc92 | ||
|
9903bbabc3 | ||
|
96647c01bc | ||
|
462075c567 | ||
|
f8eaa48703 | ||
|
06545c5c95 | ||
|
147bb97e44 | ||
|
a7ffc9baae | ||
|
df6691bc4f | ||
|
650b2f3bae | ||
|
3d18a2f960 | ||
|
f1ec641958 | ||
|
31585ce54c | ||
|
f8d68f9d0f | ||
|
38781ad778 | ||
|
11a76485a1 | ||
|
3cecc2c163 | ||
|
6d2a2ba9c0 | ||
|
65055d8964 | ||
|
142ca84c8e | ||
|
13f9ee9afc | ||
|
2d8345af4e | ||
|
b4e1c926df | ||
|
b35d3fffae | ||
|
e06f7bf374 | ||
|
2e2d056a79 | ||
|
a3d4279702 | ||
|
305d939c88 | ||
|
1664a14a02 | ||
|
dee34ffd83 | ||
|
732057a75f | ||
|
8417ff6e26 | ||
|
9d91c09b7f | ||
|
70f708f1d7 | ||
|
e5e0e9fdb8 | ||
|
e9767d770e | ||
|
2e7e5f3d37 | ||
|
7f834080f5 | ||
|
fe3e1bd17d | ||
|
bfaafcf06d | ||
|
413482f71b | ||
|
9155a068cd | ||
|
55d3ea8aec | ||
|
e9f6000dee | ||
|
eae2cd761b | ||
|
8adf7da434 | ||
|
86d599f7e4 | ||
|
cf2f181fe7 | ||
|
518f22a0f1 | ||
|
a77d286c2b | ||
|
ee4a64b430 | ||
|
a44e471e67 | ||
|
ecd3a33b3f | ||
|
5ce611c23e | ||
|
615c291ede | ||
|
cb01d8140d | ||
|
5e725064c3 | ||
|
68e320be9b | ||
|
ece912382a | ||
|
a76195b3fd | ||
|
55304567c7 | ||
|
f8d5260c54 | ||
|
198a6c55e9 | ||
|
673b70cfd1 | ||
|
3854adf0a6 | ||
|
1af7fbd5a7 | ||
|
ff2fe9ef93 | ||
|
129ea11412 | ||
|
65335eb012 | ||
|
c8d3797f86 | ||
|
5d3f2c9748 | ||
|
bbc3eac654 | ||
|
032b4926cc | ||
|
74f57c3280 | ||
|
5c5c430b4a | ||
|
bdd10541e9 | ||
|
d8d28d9eee |
308 changed files with 16941 additions and 7452 deletions
|
@ -10,4 +10,4 @@ New
|
|||
Old
|
||||
Extensions
|
||||
.snap-ignore
|
||||
Frameworks
|
||||
.stlanguage
|
||||
|
|
|
@ -1,3 +1,63 @@
|
|||
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>>
|
||||
|
||||
* Source/STScriptsPanel.m:
|
||||
int->NSInteger transition
|
||||
|
||||
2013-04-03 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/STApplicationScriptingController.m (-scriptingMenu): Hide the
|
||||
scripting menu after it has been loaded from its bundle.
|
||||
|
||||
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/STApplicationScriptingController.m (-init):
|
||||
* Source/STScriptsPanel.m (-init):
|
||||
* Source/STTranscript.m (-init):
|
||||
Check the result of the super class initializer and assign it to
|
||||
self.
|
||||
|
||||
* Source/STScriptsPanel.m (-dealloc): Fix a space leak.
|
||||
|
||||
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/STTranscript.m (-showError:): Fix space leak detected by clang.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/STScriptsPanel.m (-selectScript:): Validate Run button of the
|
||||
scripts panel.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/STApplicationScriptingController.m (-scriptingMenu): Protect
|
||||
against GNUstep stubbornly replacing the application's main menu.
|
||||
|
||||
* Source/STScriptsPanel.m (-selectScript:): Handle case where the
|
||||
script's description is nil.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/STTranscript.h (-window):
|
||||
* Source/NSApplication+additions.h (-applicationNameForScripting):
|
||||
Declare public methods.
|
||||
* Source/NSApplication+additions.m (-applicationNameForScripting):
|
||||
Fix typo in method name.
|
||||
|
||||
* Source/NSApplication+additions.m (-_createDefaultScriptingEnvironment):
|
||||
Fix to no longer use methods which were removed when adding STConversation.
|
||||
|
||||
* Source/STApplicationScriptingController.m (-executeScript:,
|
||||
-executeScriptString:inEnvironment:): Update for changes when
|
||||
STLanguage was removed and STContext was introduced.
|
||||
|
||||
* Source/STApplicationScriptingController.h (-executeScript:):
|
||||
* Source/STApplicationScriptingController.m (-executeScript:): The
|
||||
method expects an STFileScript.
|
||||
|
||||
* Source/STScriptsPanel.h (-selectedScript):
|
||||
* Source/STScriptsPanel.m (-run, -selectScript, -browse, -selectedScript):
|
||||
Method seletecedScript returns a STFileScript.
|
||||
|
||||
2003 May 2 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Added 'Objects' searching in application.
|
||||
|
|
|
@ -36,7 +36,9 @@ ApplicationScripting_OBJC_FILES = \
|
|||
NSTextView+ScriptExecution.m \
|
||||
STTranscript.m
|
||||
|
||||
ApplicationScripting_BUNDLE_LIBS += -lStepTalk $(GUI_LIBS)
|
||||
ApplicationScripting_BUNDLE_LIBS = -lStepTalk $(GUI_LIBS)
|
||||
ADDITIONAL_INCLUDE_DIRS += -I../../Frameworks/
|
||||
ADDITIONAL_LIB_DIRS += -L../../Frameworks/StepTalk/StepTalk.framework/Versions/Current/$(GNUSTEP_TARGET_LDIR)
|
||||
|
||||
ApplicationScripting_LANGUAGES = English
|
||||
|
||||
|
|
|
@ -39,4 +39,6 @@
|
|||
|
||||
- (NSMenu *)scriptingMenu;
|
||||
- (void)setScriptingMenu:(NSMenu *)menu;
|
||||
|
||||
- (NSString *)applicationNameForScripting;
|
||||
@end
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#import "STEnvironment+additions.h"
|
||||
|
||||
#import <StepTalk/STBundleInfo.h>
|
||||
#import <StepTalk/STEnvironmentDescription.h>
|
||||
|
||||
#import <Foundation/NSBundle.h>
|
||||
#import <Foundation/NSDebug.h>
|
||||
|
@ -95,6 +96,7 @@ static STApplicationScriptingController *scriptingController = nil;
|
|||
/** Create shared scripting environment. */
|
||||
- (void)_createDefaultScriptingEnvironment
|
||||
{
|
||||
STEnvironmentDescription *desc;
|
||||
STEnvironment *env = nil;
|
||||
STBundleInfo *info;
|
||||
//NSString *path;
|
||||
|
@ -127,18 +129,19 @@ static STApplicationScriptingController *scriptingController = nil;
|
|||
|
||||
if(str && ![str isEqualToString:@""])
|
||||
{
|
||||
env = [STEnvironment environmentWithDescriptionName:str];
|
||||
desc = [STEnvironmentDescription descriptionWithName:str];
|
||||
env = [STEnvironment environmentWithDescription:desc];
|
||||
}
|
||||
if(!env)
|
||||
{
|
||||
NSDebugLog(@"Using default scripting environment");
|
||||
env = [STEnvironment defaultScriptingEnvironment];
|
||||
env = [STEnvironment environmentWithDefaultDescription];
|
||||
}
|
||||
|
||||
[env loadModule:@"AppKit"];
|
||||
[env includeBundle:[NSBundle mainBundle]];
|
||||
[env setObject:self forName:@"Application"];
|
||||
[env setObject:self forName:[self applcationNameForScripting]];
|
||||
[env setObject:self forName:[self applicationNameForScripting]];
|
||||
[env setObject:[STTranscript sharedTranscript] forName:@"Transcript"];
|
||||
|
||||
scriptingEnvironment = RETAIN(env);
|
||||
|
@ -193,7 +196,7 @@ static STApplicationScriptingController *scriptingController = nil;
|
|||
}
|
||||
|
||||
/** Name of application object */
|
||||
- (NSString *)applcationNameForScripting
|
||||
- (NSString *)applicationNameForScripting
|
||||
{
|
||||
return [[NSProcessInfo processInfo] processName];
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#import <Foundation/NSObject.h>
|
||||
|
||||
@class STScriptsPanel;
|
||||
@class STScript;
|
||||
@class STFileScript;
|
||||
@class STEnvironment;
|
||||
@class NSMenu;
|
||||
@class NSDictionary;
|
||||
|
@ -45,7 +45,7 @@
|
|||
- (void)orderFrontScriptsPanel:(id)sender;
|
||||
- (void)orderFrontTranscriptWindow:(id)sender;
|
||||
|
||||
- (id)executeScript:(STScript *)script;
|
||||
- (id)executeScript:(STFileScript *)script;
|
||||
- (id)executeScriptString:(NSString *)source
|
||||
inEnvironment:(STEnvironment *)env;
|
||||
@end
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
#import <StepTalk/STBundleInfo.h>
|
||||
#import <StepTalk/STEngine.h>
|
||||
#import <StepTalk/STEnvironment.h>
|
||||
#import <StepTalk/STLanguage.h>
|
||||
#import <StepTalk/STScript.h>
|
||||
#import <StepTalk/STLanguageManager.h>
|
||||
#import <StepTalk/STFileScript.h>
|
||||
|
||||
#import "STScriptsPanel.h"
|
||||
#import "STTranscript.h"
|
||||
|
@ -47,13 +47,13 @@
|
|||
@implementation STApplicationScriptingController
|
||||
- init
|
||||
{
|
||||
STBundleInfo *info;
|
||||
|
||||
[super init];
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
STBundleInfo *info;
|
||||
|
||||
info = [STBundleInfo infoForBundle:[NSBundle mainBundle]];
|
||||
objectRefereceDict = RETAIN([info objectReferenceDictionary]);
|
||||
|
||||
info = [STBundleInfo infoForBundle:[NSBundle mainBundle]];
|
||||
objectRefereceDict = RETAIN([info objectReferenceDictionary]);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
- (void)dealloc
|
||||
|
@ -111,17 +111,72 @@
|
|||
{
|
||||
if(!scriptingMenu)
|
||||
{
|
||||
if(![self loadMyNibNamed:@"ScriptingMenu"])
|
||||
// FIXME ScriptingMenu replaces the application's main menu when it is
|
||||
// loaded, since GNUstep stubbornly considers the first top level menu
|
||||
// in a gorm file to be the application's main menu.
|
||||
NSMenu *mainMenu = RETAIN([NSApp mainMenu]);
|
||||
NS_DURING
|
||||
{
|
||||
return nil;
|
||||
if(![self loadMyNibNamed:@"ScriptingMenu"])
|
||||
{
|
||||
[NSApp setMainMenu:mainMenu];
|
||||
RELEASE(mainMenu);
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
[NSApp setMainMenu:mainMenu];
|
||||
RELEASE(mainMenu);
|
||||
[localException raise];
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
[NSApp setMainMenu:mainMenu];
|
||||
RELEASE(mainMenu);
|
||||
[scriptingMenu close];
|
||||
}
|
||||
return scriptingMenu;
|
||||
}
|
||||
|
||||
/* FIXME: rewrite this */
|
||||
- (void)updateObjectReferences
|
||||
{
|
||||
STEnvironment *env = [self actualScriptingEnvironment];
|
||||
NSEnumerator *enumerator;
|
||||
NSString *name;
|
||||
NSString *object = nil;
|
||||
NSString *reference;
|
||||
id target;
|
||||
|
||||
target = [NSApp delegate];
|
||||
|
||||
enumerator = [objectRefereceDict keyEnumerator];
|
||||
|
||||
while( (name = [enumerator nextObject]) )
|
||||
{
|
||||
reference = [objectRefereceDict objectForKey:name];
|
||||
|
||||
NSLog(@"Adding reference '%@' object '%@'", name, reference);
|
||||
|
||||
NS_DURING
|
||||
object = [target valueForKeyPath:reference];
|
||||
[env setObject:object forName:name];
|
||||
NS_HANDLER
|
||||
if([[localException name] isEqualToString:NSUndefinedKeyException])
|
||||
{
|
||||
NSLog(@"Warning: Invalid object reference '%@'.", reference);
|
||||
}
|
||||
else
|
||||
{
|
||||
[localException raise];
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
}
|
||||
}
|
||||
|
||||
/** Execute script <var>script</var> in actual scripting environment. If an
|
||||
exception occured, it will be logged into the Transcript window. */
|
||||
- (id)executeScript:(STScript *)script
|
||||
- (id)executeScript:(STFileScript *)script
|
||||
{
|
||||
STEnvironment *env = [self actualScriptingEnvironment];
|
||||
STEngine *engine;
|
||||
|
@ -130,7 +185,7 @@
|
|||
|
||||
NSDebugLog(@"Execute a script '%@'", [script localizedName]);
|
||||
|
||||
engine = [STEngine engineForLanguageWithName:[script language]];
|
||||
engine = [STEngine engineForLanguage:[script language]];
|
||||
|
||||
if(!engine)
|
||||
{
|
||||
|
@ -152,7 +207,7 @@
|
|||
#ifndef DEBUG_EXCEPTIONS
|
||||
NS_DURING
|
||||
#endif
|
||||
retval = [engine executeCode:[script source] inEnvironment:env];
|
||||
retval = [engine interpretScript:[script source] inContext:env];
|
||||
|
||||
#ifndef DEBUG_EXCEPTIONS
|
||||
NS_HANDLER
|
||||
|
@ -181,8 +236,8 @@
|
|||
NSString *error;
|
||||
id retval = nil;
|
||||
|
||||
engine = [STEngine engineForLanguageWithName:
|
||||
[STLanguage defaultLanguageName]];
|
||||
engine = [STEngine engineForLanguage:
|
||||
[[STLanguageManager defaultManager] defaultLanguage]];
|
||||
if(!engine)
|
||||
{
|
||||
NSLog(@"Unable to get scripting engine.");
|
||||
|
@ -199,7 +254,7 @@
|
|||
[self updateObjectReferences];
|
||||
|
||||
NS_DURING
|
||||
retval = [engine executeCode:source inEnvironment:env];
|
||||
retval = [engine interpretScript:source inContext:env];
|
||||
NS_HANDLER
|
||||
error = [NSString stringWithFormat:
|
||||
@"Error: "
|
||||
|
@ -216,39 +271,4 @@
|
|||
|
||||
return retval;
|
||||
}
|
||||
/* FIXME: rewrite this */
|
||||
- (void)updateObjectReferences
|
||||
{
|
||||
STEnvironment *env = [self actualScriptingEnvironment];
|
||||
NSEnumerator *enumerator;
|
||||
NSString *name;
|
||||
NSString *object = nil;
|
||||
NSString *reference;
|
||||
id target;
|
||||
|
||||
target = [NSApp delegate];
|
||||
|
||||
enumerator = [objectRefereceDict keyEnumerator];
|
||||
|
||||
while( (name = [enumerator nextObject]) )
|
||||
{
|
||||
reference = [objectRefereceDict objectForKey:name];
|
||||
|
||||
NSLog(@"Adding reference '%@' object '%@'", name, reference);
|
||||
|
||||
NS_DURING
|
||||
object = [target valueForKeyPath:reference];
|
||||
[env setObject:object forName:name];
|
||||
NS_HANDLER
|
||||
if([[localException name] isEqualToString:NSUnknownKeyException])
|
||||
{
|
||||
NSLog(@"Warning: Invalid object reference '%@'.", reference);
|
||||
}
|
||||
else
|
||||
{
|
||||
[localException raise];
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#import <AppKit/NSPanel.h>
|
||||
|
||||
@class STScriptsManager;
|
||||
@class STScript;
|
||||
@class STFileScript;
|
||||
@class NSPopUpButton;
|
||||
|
||||
@interface STScriptsPanel : NSPanel
|
||||
|
@ -49,7 +49,7 @@
|
|||
- (void) browse: (id)sender;
|
||||
- (void) showHelp: (id)sender;
|
||||
|
||||
- (STScript *) selectedScript;
|
||||
- (STFileScript *) selectedScript;
|
||||
|
||||
- (void) setDelegate: (id)anObject;
|
||||
- (id) delegate;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#import "STScriptsPanel.h"
|
||||
|
||||
#import <StepTalk/STScript.h>
|
||||
#import <StepTalk/STFileScript.h>
|
||||
#import <StepTalk/STScriptsManager.h>
|
||||
|
||||
#import <AppKit/NSApplication.h>
|
||||
|
@ -35,6 +35,7 @@
|
|||
#import <AppKit/NSMatrix.h>
|
||||
#import <AppKit/NSPopUpButton.h>
|
||||
#import <AppKit/NSWorkspace.h>
|
||||
#import <AppKit/NSGraphics.h>
|
||||
|
||||
#import "NSObject+NibLoading.h"
|
||||
#import "STApplicationScriptingController.h"
|
||||
|
@ -54,47 +55,58 @@ STScriptsPanel *sharedScriptsPanel = nil;
|
|||
|
||||
- init
|
||||
{
|
||||
NSView *view;
|
||||
|
||||
if(![self loadMyNibNamed:@"ScriptsPanel"])
|
||||
if ((self = [super initWithContentRect:NSZeroRect
|
||||
styleMask:NSTitledWindowMask
|
||||
| NSClosableWindowMask
|
||||
| NSResizableWindowMask
|
||||
backing:NSBackingStoreRetained
|
||||
defer:NO]) != nil)
|
||||
{
|
||||
[self dealloc];
|
||||
return nil;
|
||||
NSView *view;
|
||||
NSRect frame;
|
||||
|
||||
if (![self loadMyNibNamed:@"ScriptsPanel"])
|
||||
{
|
||||
[self release];
|
||||
return nil;
|
||||
}
|
||||
|
||||
frame = [[(NSPanel *)_panel contentView] frame];
|
||||
frame = [NSWindow frameRectForContentRect: frame
|
||||
styleMask: [self styleMask]];
|
||||
[self setFrame: frame display: NO];
|
||||
[self setTitle:[_panel title]];
|
||||
[self setFrame:[_panel frame] display:YES];
|
||||
[self setHidesOnDeactivate:YES];
|
||||
|
||||
view = RETAIN([_panel contentView]);
|
||||
[_panel setContentView:nil];
|
||||
[self setContentView:view];
|
||||
|
||||
RELEASE(view);
|
||||
RELEASE(_panel);
|
||||
|
||||
[self setFrameUsingName:@"STScriptsPanel"];
|
||||
[self setFrameAutosaveName:@"STScriptsPanel"];
|
||||
|
||||
[scriptList setTarget:self];
|
||||
[scriptList setAction:@selector(selectScript:)];
|
||||
[scriptList setDoubleAction:@selector(run:)];
|
||||
[scriptList setMaxVisibleColumns:1];
|
||||
|
||||
scriptsManager = RETAIN([STScriptsManager defaultManager]);
|
||||
|
||||
[self update:nil];
|
||||
}
|
||||
|
||||
self = [super initWithContentRect:[[(NSPanel *)_panel contentView] frame]
|
||||
styleMask:NSTitledWindowMask
|
||||
| NSClosableWindowMask
|
||||
| NSResizableWindowMask
|
||||
backing:NSBackingStoreRetained
|
||||
defer:NO];
|
||||
|
||||
[self setTitle:[_panel title]];
|
||||
[self setFrame:[_panel frame] display:YES];
|
||||
[self setHidesOnDeactivate:YES];
|
||||
|
||||
view = RETAIN([_panel contentView]);
|
||||
[_panel setContentView:nil];
|
||||
[self setContentView:view];
|
||||
|
||||
RELEASE(view);
|
||||
RELEASE(_panel);
|
||||
|
||||
[self setFrameUsingName:@"STScriptsPanel"];
|
||||
[self setFrameAutosaveName:@"STScriptsPanel"];
|
||||
|
||||
[scriptList setTarget:self];
|
||||
[scriptList setAction:@selector(selectScript:)];
|
||||
[scriptList setDoubleAction:@selector(run:)];
|
||||
[scriptList setMaxVisibleColumns:1];
|
||||
|
||||
scriptsManager = [STScriptsManager defaultManager];
|
||||
|
||||
[self update:nil];
|
||||
|
||||
return self;
|
||||
}
|
||||
- (void) setDelegate:(id)anObject
|
||||
- (void)dealloc
|
||||
{
|
||||
RELEASE(scripts);
|
||||
RELEASE(scriptsManager);
|
||||
[super dealloc];
|
||||
}
|
||||
- (void)setDelegate:(id)anObject
|
||||
{
|
||||
ASSIGN(delegate, anObject);
|
||||
}
|
||||
|
@ -112,7 +124,7 @@ STScriptsPanel *sharedScriptsPanel = nil;
|
|||
}
|
||||
- (void) run: (id)sender
|
||||
{
|
||||
STScript *script = [self selectedScript];
|
||||
STFileScript *script = [self selectedScript];
|
||||
|
||||
if(script)
|
||||
{
|
||||
|
@ -122,9 +134,13 @@ STScriptsPanel *sharedScriptsPanel = nil;
|
|||
|
||||
- (void) selectScript: (id)sender
|
||||
{
|
||||
STScript *script = [self selectedScript];
|
||||
STFileScript *script = [self selectedScript];
|
||||
NSString *description = [script scriptDescription];
|
||||
|
||||
[descriptionText setString:[script scriptDescription]];
|
||||
if (!description)
|
||||
description = @"";
|
||||
[descriptionText setString:description];
|
||||
[runButton setEnabled:script ? YES : NO];
|
||||
}
|
||||
|
||||
- (void)command:(id)sender
|
||||
|
@ -138,9 +154,9 @@ STScriptsPanel *sharedScriptsPanel = nil;
|
|||
}
|
||||
- (void)browse:(id)sender
|
||||
{
|
||||
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
|
||||
STScript *script = [self selectedScript];
|
||||
NSString *path = [[script fileName] stringByDeletingLastPathComponent];
|
||||
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
|
||||
STFileScript *script = [self selectedScript];
|
||||
NSString *path = [[script fileName] stringByDeletingLastPathComponent];
|
||||
|
||||
if(script)
|
||||
{
|
||||
|
@ -160,7 +176,7 @@ STScriptsPanel *sharedScriptsPanel = nil;
|
|||
[self selectScript:nil];
|
||||
}
|
||||
|
||||
- (STScript *)selectedScript
|
||||
- (STFileScript *)selectedScript
|
||||
{
|
||||
if([scriptList selectedCell])
|
||||
{
|
||||
|
@ -172,15 +188,15 @@ STScriptsPanel *sharedScriptsPanel = nil;
|
|||
}
|
||||
}
|
||||
|
||||
- (int) browser: (NSBrowser *) sender
|
||||
numberOfRowsInColumn: (int) column
|
||||
- (NSInteger) browser: (NSBrowser *) sender
|
||||
numberOfRowsInColumn: (NSInteger) column
|
||||
{
|
||||
return [scripts count];
|
||||
}
|
||||
- (void) browser: (NSBrowser *) sender
|
||||
willDisplayCell: (NSBrowserCell *) cell
|
||||
atRow: (int) row
|
||||
column: (int) column
|
||||
atRow: (NSInteger) row
|
||||
column: (NSInteger) column
|
||||
{
|
||||
NSString *name;
|
||||
if(sender != scriptList)
|
||||
|
|
|
@ -38,4 +38,5 @@
|
|||
- show:(id)anObject;
|
||||
- showLine:(id)anObject;
|
||||
- showError:(NSString *)errorText;
|
||||
- (NSWindow *)window;
|
||||
@end
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
|
||||
#import "STTranscript.h"
|
||||
|
||||
#import <StepTalk/STLanguage.h>
|
||||
|
||||
#import <AppKit/NSAttributedString.h>
|
||||
#import <AppKit/NSColor.h>
|
||||
#import <AppKit/NSTextView.h>
|
||||
|
@ -77,19 +75,21 @@ static NSDictionary *normalTextAttributes;
|
|||
|
||||
- init
|
||||
{
|
||||
if(![self loadMyNibNamed:@"TranscriptWindow"])
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
[self dealloc];
|
||||
return nil;
|
||||
if (![self loadMyNibNamed:@"TranscriptWindow"])
|
||||
{
|
||||
[self release];
|
||||
return nil;
|
||||
}
|
||||
|
||||
[window setTitle:@"Scripting Transcript"];
|
||||
[window setFrameUsingName:@"STTranscriptWindow"];
|
||||
[window setFrameAutosaveName:@"STTranscriptWindow"];
|
||||
|
||||
/* FIXME: Fix Gorm autoresizing */
|
||||
// [textView setAutoresizingMask: NSViewHeightSizable | NSViewWidthSizable];
|
||||
}
|
||||
|
||||
[window setTitle:@"Scripting Transcript"];
|
||||
[window setFrameUsingName:@"STTranscriptWindow"];
|
||||
[window setFrameAutosaveName:@"STTranscriptWindow"];
|
||||
|
||||
/* FIXME: Fix Gorm autoresizing */
|
||||
// [textView setAutoresizingMask: NSViewHeightSizable | NSViewWidthSizable];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -136,6 +136,8 @@ static NSDictionary *normalTextAttributes;
|
|||
attributes:errorTextAttributes];
|
||||
[textView insertText:astring];
|
||||
|
||||
RELEASE(astring);
|
||||
|
||||
astring = [[NSAttributedString alloc] initWithString:@"\n"
|
||||
attributes:normalTextAttributes];
|
||||
[textView insertText:astring];
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#import <AppKit/NSApplication.h>
|
||||
#import <AppKit/NSOpenPanel.h>
|
||||
#import <AppKit/NSDocumentController.h>
|
||||
|
||||
#import "ScriptPaper.h"
|
||||
#import "ScriptPaperController.h"
|
||||
|
@ -41,7 +42,7 @@
|
|||
@implementation AppController
|
||||
- init
|
||||
{
|
||||
[super init];
|
||||
self = [super init];
|
||||
|
||||
|
||||
return self;
|
||||
|
|
|
@ -1,8 +1,28 @@
|
|||
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* AppController.m (-init):
|
||||
* ScriptPaper.m (-init):
|
||||
Check the result of the super class initializer and assign it to
|
||||
self.
|
||||
|
||||
* ScriptPaper.m (-dealloc): Release environment attribute to fix space
|
||||
leak.
|
||||
|
||||
* ScriptPaper.h (-doSelection:, -doAndShowSelection:): Move method
|
||||
declarations from here ...
|
||||
* ScriptPaperController.h (-doSelection:, -doAndShowSelection:):
|
||||
... to here.
|
||||
|
||||
* ScriptPaper.m (-init, -executeScriptString:): Update to use current
|
||||
framework classes and methods.
|
||||
* ScriptPaperController.m (-doAndShowSelection:): Remove unused
|
||||
variable.
|
||||
|
||||
2003 May 11 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Added -Wno-import
|
||||
* Added TODO
|
||||
|
||||
|
||||
2003 May 4 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Added application icon
|
||||
|
@ -10,4 +30,4 @@
|
|||
2003 May 4 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* ChangeLog started
|
||||
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#import "NSObject+NibLoading.h"
|
||||
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <AppKit/NSPanel.h>
|
||||
|
||||
@implementation NSObject(NibLoading)
|
||||
|
|
|
@ -30,6 +30,5 @@
|
|||
{
|
||||
STEnvironment *environment;
|
||||
}
|
||||
- (IBAction)doSelection:(id)sender;
|
||||
- (IBAction)doAndShowSelection:(id)sender;
|
||||
- (id)executeScriptString:(NSString *)source;
|
||||
@end
|
||||
|
|
|
@ -30,21 +30,22 @@
|
|||
|
||||
#import <StepTalk/STEnvironment.h>
|
||||
#import <StepTalk/STEngine.h>
|
||||
#import <StepTalk/STLanguage.h>
|
||||
#import <StepTalk/STLanguageManager.h>
|
||||
|
||||
#import "ScriptPaperController.h"
|
||||
|
||||
@implementation ScriptPaper
|
||||
- init
|
||||
{
|
||||
[super init];
|
||||
|
||||
environment = [[STEnvironment alloc] initDefault];
|
||||
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
environment = [[STEnvironment alloc] initWithDefaultDescription];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
- (void)dealloc
|
||||
{
|
||||
RELEASE(environment);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -63,8 +64,8 @@
|
|||
NSString *error;
|
||||
id retval = nil;
|
||||
|
||||
engine = [STEngine engineForLanguageWithName:
|
||||
[STLanguage defaultLanguageName]];
|
||||
engine = [STEngine engineForLanguage:
|
||||
[[STLanguageManager defaultManager] defaultLanguage]];
|
||||
if(!engine)
|
||||
{
|
||||
NSLog(@"Unable to get scripting engine.");
|
||||
|
@ -78,7 +79,7 @@
|
|||
}
|
||||
|
||||
NS_DURING
|
||||
retval = [engine executeCode:source inEnvironment:environment];
|
||||
retval = [engine interpretScript:source inContext:environment];
|
||||
NS_HANDLER
|
||||
error = [NSString stringWithFormat:
|
||||
@"Error: "
|
||||
|
|
|
@ -34,5 +34,7 @@
|
|||
{
|
||||
NSTextView *sourceView;
|
||||
}
|
||||
- (IBAction)doSelection:(id)sender;
|
||||
- (IBAction)doAndShowSelection:(id)sender;
|
||||
@end
|
||||
|
||||
|
|
|
@ -66,14 +66,13 @@
|
|||
NSString *selectedString = [sourceView selectedString];
|
||||
NSRange range;
|
||||
id string;
|
||||
int length;
|
||||
id retval = nil;
|
||||
|
||||
NSLog(@"Do and Show!");
|
||||
|
||||
retval = [[self document] executeScriptString:selectedString];
|
||||
|
||||
if(!retval)
|
||||
if (!retval)
|
||||
{
|
||||
retval = @"(nil)";
|
||||
}
|
||||
|
@ -83,7 +82,7 @@
|
|||
[sourceView setSelectedRange:range];
|
||||
|
||||
|
||||
if([retval isKindOfClass:[NSString class]]
|
||||
if ([retval isKindOfClass:[NSString class]]
|
||||
|| [retval isKindOfClass:[NSAttributedString class]])
|
||||
{
|
||||
string = retval;
|
||||
|
|
642
COPYING
642
COPYING
|
@ -1,221 +1,397 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
the Library or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
|
@ -225,116 +401,104 @@ impose that choice.
|
|||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
That's all there is to it!
|
||||
|
||||
|
||||
|
|
504
COPYING.LIB
504
COPYING.LIB
|
@ -1,504 +0,0 @@
|
|||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
|
551
ChangeLog
551
ChangeLog
|
@ -1,3 +1,554 @@
|
|||
2020-06-29 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/GNUmakefile: Specify dependent libraries
|
||||
while linking regardless of the target OS.
|
||||
|
||||
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
|
||||
generation of selector types on 64-bit architectures.
|
||||
|
||||
2017-12-27 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STEnvironmentDescription.m
|
||||
(defaultDescriptionName): Remove redundant method call.
|
||||
|
||||
* Frameworks/StepTalk/STBundleInfo.m (allFrameworkNames,
|
||||
pathForFrameworkWithName:):
|
||||
* Tools/STExecutor.m (executeScript:withArguments:): Use NULL
|
||||
instead of NO where a pointer argument is expected.
|
||||
|
||||
* Frameworks/StepTalk/STConversation.m (knownLanguages,
|
||||
interpretScript:):
|
||||
* Frameworks/StepTalk/STRemoteConversation.m (interpretScript:):
|
||||
* Frameworks/StepTalk/STUndefinedObject.m (release):
|
||||
Fix inconsistent distributed object modifiers reported by clang.
|
||||
|
||||
2015-10-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STObjCRuntime.m (selector_types): Fix broken
|
||||
array initialization, which meant that incorrect method signatures
|
||||
were generated for methods with more than four arguments.
|
||||
|
||||
2014-11-02 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STRemoteConversation.m
|
||||
(-initWithEnvironmentName:host:language:, -open,
|
||||
-setLanguage:, -language): Correctly initialize the scripting
|
||||
language used in a remote conversation.
|
||||
|
||||
2014-11-02 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STRemoteConversation.m (-open): Force use of
|
||||
a socket port name server to look up servers on other hosts.
|
||||
|
||||
2014-11-02 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STRemoteConversation.m (-connectionDidDie:):
|
||||
Fix leak of the proxy and environmentProcess attributes when a
|
||||
connection died.
|
||||
|
||||
2014-11-01 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/NSObject+additions.h (-notEqual:, -notSame:):
|
||||
* Frameworks/StepTalk/NSObject+additions.m (-notEqual:, -notSame:):
|
||||
Add method implementations for the symbolic selectors ~= and ~~,
|
||||
which are defined in the SymbolicSelectors.stenv environment.
|
||||
|
||||
2014-11-01 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STClassInfo.m (-dealloc): Release superclass
|
||||
and superclassName attributes.
|
||||
* Frameworks/StepTalk/STEnvironment.m (-initWithDescription:):
|
||||
Remove duplicated RETAIN statement.
|
||||
|
||||
2013-05-27 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/NSInvocation+additions.m
|
||||
(STGetValueOfTypeFromObject): Fix marshaling for arguments with
|
||||
type (char*).
|
||||
|
||||
* Frameworks/StepTalk/NSInvocation+additions.m
|
||||
(STObjectFromValueOfType, STGetValueOfTypeFromObject): Skip const
|
||||
qualifiers in types.
|
||||
|
||||
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STActor.m (-instanceVariables): Fix typo in
|
||||
method name.
|
||||
* Frameworks/StepTalk/STActor.m (-addInstanceVariable:):
|
||||
* Frameworks/StepTalk/STActor.m (-removeInstanceVariable:):
|
||||
New methods to add and remove instance variables.
|
||||
|
||||
* Frameworks/StepTalk/STActor.h (-instanceVariableNames):
|
||||
* Frameworks/StepTalk/STActor.h (-setInstanceVariables:):
|
||||
* Frameworks/StepTalk/STActor.h (-instanceVariables):
|
||||
* Frameworks/StepTalk/STActor.h (-addInstanceVariable:):
|
||||
* Frameworks/StepTalk/STActor.h (-removeInstanceVariable:):
|
||||
Add methods to the public API.
|
||||
|
||||
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Tools/STExecutor.h:
|
||||
* Examples/Shell/STShell+output.m:
|
||||
* Examples/Shell/stshell_tool.m:
|
||||
int->NSInteger transition
|
||||
|
||||
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Modules/AppKit/AppKitConstants.list:
|
||||
* Modules/AppKit/AppKitConstants.m:
|
||||
* Modules/AppKit/AppKitEvents.list:
|
||||
* Modules/AppKit/AppKitEvents.m:
|
||||
* Modules/AppKit/AppKitExceptions.m:
|
||||
* Modules/AppKit/AppKitNotifications.m:
|
||||
* Modules/AppKit/header.m:
|
||||
* Modules/Foundation/FoundationConstants.list:
|
||||
* Modules/Foundation/FoundationConstants.m:
|
||||
* Modules/Foundation/header.m:
|
||||
* Modules/GDL2/header.m:
|
||||
* Modules/SQLClient/SQLClientConstants.m:
|
||||
* Modules/SQLClient/header.m:
|
||||
* Modules/WebServices/WebServicesConstants.m:
|
||||
* Modules/WebServices/header.m:
|
||||
int->NSInteger transition
|
||||
|
||||
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/NSInvocation+additions.h:
|
||||
* Frameworks/StepTalk/NSInvocation+additions.m:
|
||||
* Frameworks/StepTalk/NSNumber+additions.h:
|
||||
* Frameworks/StepTalk/NSNumber+additions.m:
|
||||
* Frameworks/StepTalk/STActor.m:
|
||||
* Frameworks/StepTalk/STEnvironmentDescription.h:
|
||||
* Frameworks/StepTalk/STEnvironmentDescription.m:
|
||||
* Frameworks/StepTalk/STLanguageManager.m:
|
||||
* Frameworks/StepTalk/STObjCRuntime.m:
|
||||
* Frameworks/StepTalk/STScriptObject.m:
|
||||
* Frameworks/StepTalk/STStructure.h:
|
||||
* Frameworks/StepTalk/STStructure.m:
|
||||
int->NSInteger transition
|
||||
|
||||
2013-04-06 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STActor.m (-setValue:forKey:): Fix bug where
|
||||
instance variables of an actor got lost when set to nil.
|
||||
|
||||
2013-04-04 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/NSObject+additions.h (-yourself):
|
||||
* Frameworks/StepTalk/NSObject+additions.m (-yourself): Add
|
||||
standard Smalltalk method, which is convenient in cascades.
|
||||
|
||||
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Tools/STEnvironmentProcess.m (-initWithDescriptionName:):
|
||||
Check the result of the super class initializer and assign it to
|
||||
self.
|
||||
|
||||
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STActor.m (-init, -initWithEnvironment:,
|
||||
-initWithCoder:):
|
||||
* Frameworks/StepTalk/STBehaviourInfo.m (-initWithName:):
|
||||
* Frameworks/StepTalk/STClassInfo.m (-initWithName:):
|
||||
* Frameworks/StepTalk/STContext.m (-init):
|
||||
* Frameworks/StepTalk/STConversation.m (-initWithContext:language:):
|
||||
* Frameworks/StepTalk/STDistantConversation.m
|
||||
(-initWithEnvironment:language:):
|
||||
* Frameworks/StepTalk/STDistantEnvironment.m (-initWithName:host:):
|
||||
* Frameworks/StepTalk/STEnvironment.m (-initWithDescription:):
|
||||
* Frameworks/StepTalk/STFileScript.m (-initWithFile:):
|
||||
* Frameworks/StepTalk/STLanguageManager.m (-init):
|
||||
* Frameworks/StepTalk/STObjectReference.m (-initWithIdentifier:target:):
|
||||
* Frameworks/StepTalk/STRemoteConversation.m
|
||||
(-initWithEnvironmentName:host:language:):
|
||||
* Frameworks/StepTalk/STScript.m (-initWithSource:language:):
|
||||
* Frameworks/StepTalk/STScriptObject.m (-init, -initWithCoder:):
|
||||
* Frameworks/StepTalk/STScriptsManager.m (-initWithDomainName:):
|
||||
* Frameworks/StepTalk/STSelector.m (-initWithName:,
|
||||
-initWithSelector:, -initWithCoder:):
|
||||
* Frameworks/StepTalk/STStructure.m (-initWithValue:type:):
|
||||
Check the result of the super class initializer and assign it to
|
||||
self.
|
||||
|
||||
2013-02-08 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/Environments/StepTalk.stenv:
|
||||
Define standard Smalltalk methods for invoking blocks with arguments.
|
||||
|
||||
2012-11-03 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Examples/Developer/StepUnit.st: Fix typo in method name and stop
|
||||
using deprecated methods.
|
||||
|
||||
2012-11-03 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STConversation.h
|
||||
(-conversationWithContext:language:):
|
||||
* Frameworks/StepTalk/STConversation.m
|
||||
(-conversationWithContext:language:):
|
||||
Implement method which is advertised as replacement for the
|
||||
deprecated method -conversationWithEnvironment:language:.
|
||||
|
||||
* Frameworks/StepTalk/STConversation.m (-runScriptFromString:,
|
||||
-conversationWithEnvironment:language:, -initWithEnvironment:language:,
|
||||
-environment):
|
||||
* Frameworks/StepTalk/STEnvironmentDescription.m
|
||||
(defaultEnvironmentDescriptionName):
|
||||
Fix typos and spacing in warning messages.
|
||||
|
||||
2012-10-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Modules/GNUmakefile:
|
||||
* Modules/WebServices/Functions.h:
|
||||
* Modules/WebServices/Functions.m:
|
||||
* Modules/WebServices/GNUmakefile:
|
||||
* Modules/WebServices/STWebServicesModule.h:
|
||||
* Modules/WebServices/STWebServicesModule.m:
|
||||
* Modules/WebServices/ScriptingInfo.plist:
|
||||
* Modules/WebServices/WebServicesConstants.list:
|
||||
* Modules/WebServices/WebServicesConstants.m:
|
||||
* Modules/WebServices/create_constants.awk:
|
||||
* Modules/WebServices/footer.m:
|
||||
* Modules/WebServices/header.m:
|
||||
Add WebServices bundle. Must be requested explicitly by adding
|
||||
webservices=yes to the make command line.
|
||||
|
||||
2012-10-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Modules/GNUmakefile:
|
||||
* Modules/SQLClient/Functions.h:
|
||||
* Modules/SQLClient/Functions.m:
|
||||
* Modules/SQLClient/GNUmakefile:
|
||||
* Modules/SQLClient/SQLClient+additions.m:
|
||||
* Modules/SQLClient/SQLClientConstants.list:
|
||||
* Modules/SQLClient/SQLClientConstants.m:
|
||||
* Modules/SQLClient/STSQLClientModule.h:
|
||||
* Modules/SQLClient/STSQLClientModule.m:
|
||||
* Modules/SQLClient/ScriptingInfo.plist:
|
||||
* Modules/SQLClient/create_constants.awk:
|
||||
* Modules/SQLClient/footer.m:
|
||||
* Modules/SQLClient/header.m:
|
||||
Add SQLClient bundle. Must be requested explicitly by adding
|
||||
sqlclient=yes to the make command line.
|
||||
|
||||
2012-10-26 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Modules/AppKit/GNUmakefile:
|
||||
* Modules/Foundation/GNUmakefile:
|
||||
* Modules/GDL2/GNUmakefile:
|
||||
* Modules/ObjectiveC/GNUmakefile:
|
||||
* Modules/SimpleTranscript/GNUmakefile:
|
||||
Fix Makefile variables (bundle.make uses BUNDLE_LIBS, not
|
||||
ADDITIONAL_BUNDLE_LIBS).
|
||||
|
||||
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STBundleInfo.m (-_bundleDidLoad:): Add
|
||||
missing argument in NSLog call detected by clang.
|
||||
|
||||
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STEnvironment.m (-registerObjectFinderNamed:):
|
||||
* Frameworks/StepTalk/STEnvironmentDescription.m
|
||||
(-updateFromDictionary:, -updateBehavioursFromDictionary:,
|
||||
-updateClassWithName:description:):
|
||||
* Frameworks/StepTalk/STFileScript.m (-source):
|
||||
* Frameworks/StepTalk/STObjCRuntime.m (STAllObjectiveCSelectors):
|
||||
* Tools/STExecutor.m (-executeScript:withArguments:):
|
||||
* Tools/stalk.m (-createConversation, main):
|
||||
* Tools/stenvironment.m (main): Fix potential space leaks detected
|
||||
by clang.
|
||||
|
||||
* Frameworks/StepTalk/STBundleInfo.m (+stepTalkBundleNames): Fix
|
||||
double release detected by clang.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STStructure.h:
|
||||
* Frameworks/StepTalk/STStructure.m (+structureWithOrigin:size:,
|
||||
extent:, corner:): New methods to construct rectangles from points
|
||||
and sizes.
|
||||
|
||||
* TODO: Update.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Modules/AppKit/AppKitConstants.list: Remove obsolete NSDataLink
|
||||
constants.
|
||||
* Modules/AppKit/AppKitConstants.m: Regenerated.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Documentation/ApplicationScripting.txt: Fix errors.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STEngine.h (-methodFromSource:...):
|
||||
* Frameworks/StepTalk/STEngine.m (-methodFromSource:...):
|
||||
STMethod is a protocol not a class.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STObjCRuntime.m (STSelectorTypes,
|
||||
STSelectorFromString, STCreateTypedSelector,
|
||||
STConstructMethodSignatureForSelector): Add special case to
|
||||
register selectors of (Smalltalk) binary operators with one
|
||||
argument instead of zero.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STObjCRuntime.m (STSelectorFromString):
|
||||
Always register typed selectors, since forwarding to untyped
|
||||
selectors stopped working a while back in GNUstep.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/NSInvocation+additions.m:
|
||||
* Frameworks/StepTalk/STStructure.m:
|
||||
* Modules/ObjectiveC/NSObject+additions.m:
|
||||
* Modules/ObjectiveC/ObjectiveCRuntime.m:
|
||||
Clean up imports removing includes of Objective-C runtime headers.
|
||||
Also replace a few more deprecated Objective-C runtime calls.
|
||||
|
||||
2011-04-07 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Modules/ObjectiveC/ObjectiveCRuntime.m (-allClasses):
|
||||
* Modules/ObjectiveC/NSObject+additions.m (methods_for_class,
|
||||
ivars_for_class, +methodNames): Update to Objective-C 2 API.
|
||||
|
||||
2011-04-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Frameworks/StepTalk/STObjCRuntime.m: replace runtime specific typed
|
||||
selector code with the standard gnustep functions.
|
||||
|
||||
2011-04-06 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STLanguageManager.m (-dealloc): Fix
|
||||
typo. (Was calling -dealloc on self instead of super).
|
||||
|
||||
2011-04-06 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STObjCRuntime.m (STAllObjectiveCClasses,
|
||||
STCreateTypedSelector, STConstructMethodSignatureForSelector,
|
||||
selectors_from_list, STAllObjectiveCSelectors): Update to
|
||||
Objective-C 2 API.
|
||||
|
||||
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/Environments/StepTalk.stenv: Add missing
|
||||
semicolon at end of plist dictionary.
|
||||
|
||||
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Frameworks/StepTalk/STUndefinedObject.m (-forwardInvocation:):
|
||||
Clear result buffer to prevent crashes under GNUstep when the
|
||||
invoked method's result type is an object type.
|
||||
|
||||
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Modules/AppKit/GNUmakefile: Add header.m and footer.m to
|
||||
dependencies of %.list -> %.m rule.
|
||||
* Modules/AppKit/header.m (STGet@@NAME@@): Use local variable to
|
||||
get rid of compiler warning.
|
||||
* Modules/AppKit/AppKitNotifications.list: Update AppKit
|
||||
notification list to match recent change in gui.
|
||||
|
||||
* Modules/AppKit/AppKitConstants.m:
|
||||
* Modules/AppKit/AppKitEvents.m:
|
||||
* Modules/AppKit/AppKitNotifications.m:
|
||||
Regenerated.
|
||||
|
||||
2008 Okt 28 Samuel Harvey
|
||||
|
||||
* Modules/GDL2/GNUmakefile: Use ADDITIONAL_NATIVE_LIBS instead of
|
||||
GDL2_BUNDLE_LIBS to link GDL2 packages.
|
||||
|
||||
2007 Feb 14 Nicola Pero
|
||||
|
||||
* All GNUmakefiles in the project: Use GNUSTEP_LIBRARY
|
||||
instead of GNUSTEP_INSTALLATION_DIR/Library.
|
||||
|
||||
2005 Sep 5 Stefan Urbanek
|
||||
|
||||
* Version 0.10.0
|
||||
|
||||
2005 Sep 5 Stefan Urbanek
|
||||
|
||||
* Frameworks/StepTalk: compiler warnings removed
|
||||
|
||||
2005 Aug 30 Stefan Urbanek
|
||||
|
||||
* STLanguageManager: new class
|
||||
* STLanguage: removed
|
||||
* STEngine: engineForLanguageWithName: and engineForFileType: removed, use
|
||||
STLanguageManager instead, added engineForLanguage:
|
||||
* Tools/stexec - updated to use STLanguageManager
|
||||
* Tools/stupdate_languages - removed as it was replaced by STLanguageManager
|
||||
* Examples/Server - removed as it was replaced by stenvironment and distant
|
||||
scripting
|
||||
|
||||
Notes:
|
||||
- you can delete */Library/StepTalk/Configuration directories
|
||||
|
||||
2005 Aug 17 Stefan Urbanek
|
||||
|
||||
* STConversation: renamed run* method to interpret*, interpretScript: does
|
||||
not return value anymore (because of distant conversations), new methods
|
||||
result and resultByCopy were added
|
||||
* STEnvironment: removed depreciated methods
|
||||
* STDistantConversation: new class for conversations with distant objects
|
||||
* Tools/stenvironment: new tool for semi-persistent scripting environments
|
||||
* Tools/stexec: added reading from stdin; reflect library changes
|
||||
* Tools/stalk: removed
|
||||
* STEngine: renamed methods (see STEngine.h for more information)
|
||||
|
||||
2005 June 30
|
||||
|
||||
Version 0.9.1
|
||||
|
||||
2005 June 30
|
||||
|
||||
* STActor: new class
|
||||
* Examples/Smalltalk/actor - new actor example
|
||||
|
||||
2005 June 19
|
||||
|
||||
Version 0.9.0
|
||||
|
||||
2005 June 19 Stefan Urbanek
|
||||
|
||||
* STEnvironment: search class name namespace when no object is found for
|
||||
given name and full scripting is enabled.
|
||||
|
||||
2005 Jan 4 Stefan Urbanek
|
||||
|
||||
* First step of introducing contexts
|
||||
|
||||
NOTE: This version is unstable.
|
||||
|
||||
2004 Nov 9 Stefan Urbanek
|
||||
|
||||
* Remove STMethodSignatureForSelector as it was deprecated because of
|
||||
inportability to OSX.
|
||||
|
||||
2004 Sep 23 Stefan Urbanek
|
||||
|
||||
* STContext: new class
|
||||
* STEnvironment: make it subclass of STContext, move several methods
|
||||
|
||||
2004 Sep 6 Stefan Urbanek
|
||||
|
||||
* stshell: fix for compiler
|
||||
* added missing STEnvironmentDescription installation
|
||||
|
||||
2004 Aug 2 Stefan Urbanek
|
||||
|
||||
* Search for scripts in */Library/Scripts/*
|
||||
* stexec: use scripts manager to look for scripts in default locations. For
|
||||
this tool it is .../Library/Scripts/Shell or .../Library/StepTalk/Scripts/Shell
|
||||
|
||||
2004 Jul 26 Stefan Urbanek
|
||||
|
||||
* Added NSString containsString: to Foundation module.
|
||||
|
||||
2004 Jun 27 Stefan Urbanek
|
||||
|
||||
* Added examples:
|
||||
- Developer/StepUnit.st from Mateu Batle
|
||||
- awlaunch.sh from Frederico Munoz
|
||||
* Version 0.8.1
|
||||
|
||||
2004 Apr 25 Stefan Urbanek
|
||||
|
||||
* Changed license to LGPL
|
||||
|
||||
2004 Apr 19 Stefan Urbanek
|
||||
|
||||
* applied patch from Mateu Batle to replace nil valuse with STNil on
|
||||
message sending
|
||||
* fixed STConversation issue
|
||||
|
||||
2004 Mar 28 Stefan Urbanek
|
||||
|
||||
Changes according to the Helge Hess:
|
||||
* STBundleInfo: fix to use string instead of constant (OSX compatibility)
|
||||
* STFileScript, STLanguage, STScript: added missing #imports
|
||||
|
||||
|
||||
2003 Nov 24 Stefan Urbanek <stefanu@altair.dcs.elf.stuba.sk>
|
||||
|
||||
* Version 0.8.1
|
||||
|
||||
2003 Nov 24 Stefan Urbanek <stefanu@altair.dcs.elf.stuba.sk>
|
||||
|
||||
* Few fixes, removed some compiler warnings. Fixed Shell to use
|
||||
proper environment.
|
||||
|
||||
2003 Nov 8 Stefan Urbanek <stefanu@altair.dcs.elf.stuba.sk>
|
||||
|
||||
* Updated tools to use STConversation object.
|
||||
|
||||
2003 Oct 23 Stefan Urbanek <stefanu@altair.dcs.elf.stuba.sk>
|
||||
|
||||
* Added STEnvironment +sharedEnvironment, +defaultScriptingEnvironment and
|
||||
initWithDefaultDescription. Deprecated initDefault,
|
||||
environmentWithDescriptionName, environmentWithDescriptionName
|
||||
* Added STConversation class
|
||||
|
||||
2003 Oct 6 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Added STFileScript - moved all unnecessary stuff from STScript there.
|
||||
* Fixed STScriptsManager to use STFileScript
|
||||
|
||||
2003 Oct 3 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Added ReadlineTranscript module (Idea by Alexander Diemand + patch from
|
||||
David Ayers)
|
||||
* Added shell.st example.
|
||||
|
||||
2003 Sep 24 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* STEnvironmentDescription: guard initialisation in Autorelease pool
|
||||
|
||||
2003 Sep 23 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* STEngine: setValueForOption: added
|
||||
|
||||
2003 Aug 13 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Version 0.8.0
|
||||
|
||||
2003 Aug 9 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Removed compiler warnings in StepTalk.framework, Smalltalk and Tools
|
||||
|
||||
2003 Aug 6 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Frameworks: new directory
|
||||
* Changed StepTalk from library to framework
|
||||
* Modules: Removed StepTalk module as it is no more needed, because
|
||||
we have framework and it can provide scripting capabilities by it self
|
||||
* All GNUMakefiles modified to reflect change to Framework
|
||||
* Added Framework loading in .stenv description files.
|
||||
Use: Frameworks = (name1, name2);
|
||||
|
||||
NOTE: You HAVE to remove your previous installation of StepTalk to be
|
||||
able to install new one. (especially Local/Library/Headers/StepTalk).
|
||||
|
||||
2003 Aug 5 Stefan Urbanek <urbanek@host.sk>
|
||||
|
||||
* Added STScriptObject and STMethod.
|
||||
|
||||
2003 Jun 15
|
||||
|
||||
* NSInvocation+additions: added unknown selector creation; created a
|
||||
|
|
|
@ -18,11 +18,11 @@ Creating a scriptable application
|
|||
2 Make classes available in ScriptingInfo.plist:
|
||||
|
||||
{
|
||||
STClasses =
|
||||
{
|
||||
Classes =
|
||||
(
|
||||
MessageComposition,
|
||||
InternetAddress
|
||||
};
|
||||
);
|
||||
}
|
||||
|
||||
Add this line to your makefile:
|
||||
|
@ -48,12 +48,11 @@ Creating a scriptable application
|
|||
...
|
||||
if([NSApp isScriptingSupported])
|
||||
{
|
||||
[menu addItemWithTitle: @"Scripting"
|
||||
action: NULL
|
||||
keyEquivalent: @""];
|
||||
|
||||
[menu setSubmenu: [NSApp scriptingMenu]
|
||||
forItem: [menu itemWithTitle:@"Scripting"]];
|
||||
NSMenuItem *scriptingItem =
|
||||
[menu addItemWithTitle: @"Scripting"
|
||||
action: NULL
|
||||
keyEquivalent: @""];
|
||||
[scriptingItem setSubmenu: [NSApp scriptingMenu]];
|
||||
}
|
||||
...
|
||||
|
||||
|
@ -112,7 +111,7 @@ The file is dictionary property list. Kes are:
|
|||
French = {
|
||||
Name = "Some name in french";
|
||||
Description = "Some description in french";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Example
|
||||
|
@ -129,7 +128,7 @@ Example
|
|||
{
|
||||
Description = "This is a script for testing if scripting works";
|
||||
Name = "Test";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
3. Put both files into */Library/StepTalk/Scripts/your_application_name
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="NSInvocation+additions" up="StepTalk">
|
||||
<head>
|
||||
<title>NSInvocation class additions</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
@ -22,6 +19,15 @@
|
|||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<method type="id" factory="yes">
|
||||
<sel>invocationWithTarget:</sel>
|
||||
<arg type="id">target</arg>
|
||||
<sel>selector:</sel>
|
||||
<arg type="SEL">selector</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" factory="yes">
|
||||
<sel>invocationWithTarget:</sel>
|
||||
<arg type="id">target</arg>
|
||||
|
@ -70,7 +76,8 @@
|
|||
<arg type="void*">value</arg>
|
||||
<arg type="const char*">type</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
This method is a factory method, that means that you
|
||||
have to release the object when you no longer need it.
|
||||
</desc>
|
||||
</function>
|
||||
</chapter>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>NSInvocation class additions</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$NSInvocation+additions">NSInvocation class additions</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -50,13 +49,22 @@
|
|||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation+invocationWithTarget:selectorName:">+invocationWithTarget:selectorName:</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation-getArgumentAsObjectAtIndex:">-getArgumentAsObjectAtIndex:</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation-returnValueAsObject">-returnValueAsObject</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation-setArgumentAsObject:atIndex:">-setArgumentAsObject:atIndex:</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)+invocationWithTarget:selector:">+invocationWithTarget:selector:</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)+invocationWithTarget:selectorName:">+invocationWithTarget:selectorName:</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)-getArgumentAsObjectAtIndex:">-getArgumentAsObjectAtIndex:</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)-returnValueAsObject">-returnValueAsObject</a></li>
|
||||
<li><a rel="gsdoc" href="NSInvocation+additions.html#method$NSInvocation(STAdditions)-setArgumentAsObject:atIndex:">-setArgumentAsObject:atIndex:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$NSInvocation(STAdditions)+invocationWithTarget:selectorName:">invocationWithTarget:selectorName:</a></h3>
|
||||
<h3><a name="method$NSInvocation(STAdditions)+invocationWithTarget:selector:">invocationWithTarget: selector: </a></h3>
|
||||
+ (id) <b>invocationWithTarget:</b> (id)target<b> selector:</b> (SEL)selector;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSInvocation(STAdditions)+invocationWithTarget:selectorName:">invocationWithTarget: selectorName: </a></h3>
|
||||
+ (id) <b>invocationWithTarget:</b> (id)target<b> selectorName:</b> (NSString*)selectorName;<br />
|
||||
<p>
|
||||
|
||||
|
@ -64,7 +72,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSInvocation(STAdditions)-getArgumentAsObjectAtIndex:">getArgumentAsObjectAtIndex:</a></h3>
|
||||
<h3><a name="method$NSInvocation(STAdditions)-getArgumentAsObjectAtIndex:">getArgumentAsObjectAtIndex: </a></h3>
|
||||
- (id) <b>getArgumentAsObjectAtIndex:</b> (int)anIndex;<br />
|
||||
<p>
|
||||
|
||||
|
@ -72,7 +80,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSInvocation(STAdditions)-returnValueAsObject">returnValueAsObject</a></h3>
|
||||
<h3><a name="method$NSInvocation(STAdditions)-returnValueAsObject">returnValueAsObject </a></h3>
|
||||
- (id) <b>returnValueAsObject</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -80,7 +88,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSInvocation(STAdditions)-setArgumentAsObject:atIndex:">setArgumentAsObject:atIndex:</a></h3>
|
||||
<h3><a name="method$NSInvocation(STAdditions)-setArgumentAsObject:atIndex:">setArgumentAsObject: atIndex: </a></h3>
|
||||
- (void) <b>setArgumentAsObject:</b> (id)anObject<b> atIndex:</b> (int)anIndex;<br />
|
||||
<p>
|
||||
|
||||
|
@ -104,11 +112,13 @@
|
|||
id STObjectFromValueOfType(void* <b>value</b>, const char* <b>type</b>);<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
This method is a factory method, that means that you
|
||||
have to release the object when you no longer need it.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="NSObject+additions" up="StepTalk">
|
||||
<head>
|
||||
<title>NSObject+additions autogsdoc generated documentation</title>
|
||||
<author name="Generated by me"></author>
|
||||
<title>NSObject+additions documentation</title>
|
||||
<author name="Generated by stevko"></author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>NSObject+additions autogsdoc generated documentation</title>
|
||||
<title>NSObject+additions documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$NSObject+additions">NSObject+additions autogsdoc generated documentation</a></h1>
|
||||
<h1><a name="title$NSObject+additions">NSObject+additions documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Generated by me</dt>
|
||||
<dt>Generated by stevko</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -36,12 +37,12 @@
|
|||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject-isNil">-isNil</a></li>
|
||||
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject-isSame:">-isSame:</a></li>
|
||||
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject-notNil">-notNil</a></li>
|
||||
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject(STAdditions)-isNil">-isNil</a></li>
|
||||
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject(STAdditions)-isSame:">-isSame:</a></li>
|
||||
<li><a rel="gsdoc" href="NSObject+additions.html#method$NSObject(STAdditions)-notNil">-notNil</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$NSObject(STAdditions)-isNil">isNil</a></h3>
|
||||
<h3><a name="method$NSObject(STAdditions)-isNil">isNil </a></h3>
|
||||
- (BOOL) <b>isNil</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -49,7 +50,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSObject(STAdditions)-isSame:">isSame:</a></h3>
|
||||
<h3><a name="method$NSObject(STAdditions)-isSame:">isSame: </a></h3>
|
||||
- (BOOL) <b>isSame:</b> (id)anObject;<br />
|
||||
<p>
|
||||
|
||||
|
@ -57,7 +58,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSObject(STAdditions)-notNil">notNil</a></h3>
|
||||
<h3><a name="method$NSObject(STAdditions)-notNil">notNil </a></h3>
|
||||
- (BOOL) <b>notNil</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -67,5 +68,6 @@
|
|||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
109
Documentation/Reference/STActor.gsdoc
Normal file
109
Documentation/Reference/STActor.gsdoc
Normal file
|
@ -0,0 +1,109 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STActor" up="StepTalk">
|
||||
<head>
|
||||
<title>STActor class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STActor class
|
||||
</heading>
|
||||
<class name="STActor" super="NSObject">
|
||||
<declared>StepTalk/STActor.h</declared>
|
||||
<conform>NSCoding</conform>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="STEnvironment*" name="environment" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="ivars" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="methodDictionary" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="id" factory="yes">
|
||||
<sel>actorInEnvironment:</sel>
|
||||
<arg type="STEnvironment*">env</arg>
|
||||
<desc>
|
||||
Return new instance of script object without any
|
||||
instance variables
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>addMethod:</sel>
|
||||
<arg type="id<STMethod>">aMethod</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STEnvironment*">
|
||||
<sel>environment</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithEnvironment:</sel>
|
||||
<arg type="STEnvironment*">env</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSDictionary*">
|
||||
<sel>methodDictionary</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>methodNames</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id<STMethod>">
|
||||
<sel>methodWithName:</sel>
|
||||
<arg type="NSString*">aName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>removeMethod:</sel>
|
||||
<arg type="id<STMethod>">aMethod</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>removeMethodWithName:</sel>
|
||||
<arg type="NSString*">aName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setEnvironment:</sel>
|
||||
<arg type="STEnvironment*">env</arg>
|
||||
<desc>
|
||||
Set object's environment. Note: This method should be
|
||||
replaced by some other, more clever mechanism.
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
173
Documentation/Reference/STActor.html
Normal file
173
Documentation/Reference/STActor.html
Normal file
|
@ -0,0 +1,173 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STActor class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STActor">STActor class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STActor class
|
||||
</a></h1>
|
||||
<h2><a name="class$STActor">STActor</a> : NSObject</h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STActor.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Conforms to:</b></dt>
|
||||
<dd>NSCoding</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STActor_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor+actorInEnvironment:">+actorInEnvironment:</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-addMethod:">-addMethod:</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-environment">-environment</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-initWithEnvironment:">-initWithEnvironment:</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-methodDictionary">-methodDictionary</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-methodNames">-methodNames</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-methodWithName:">-methodWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-removeMethod:">-removeMethod:</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-removeMethodWithName:">-removeMethodWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STActor.html#method$STActor-setEnvironment:">-setEnvironment:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STActor+actorInEnvironment:">actorInEnvironment: </a></h3>
|
||||
+ (id) <b>actorInEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
|
||||
<p>
|
||||
|
||||
Return new instance of script object without any
|
||||
instance variables
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-addMethod:">addMethod: </a></h3>
|
||||
- (void) <b>addMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-environment">environment </a></h3>
|
||||
- (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*) <b>environment</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-initWithEnvironment:">initWithEnvironment: </a></h3>
|
||||
- (id) <b>initWithEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-methodDictionary">methodDictionary </a></h3>
|
||||
- (NSDictionary*) <b>methodDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-methodNames">methodNames </a></h3>
|
||||
- (NSArray*) <b>methodNames</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-methodWithName:">methodWithName: </a></h3>
|
||||
- (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>) <b>methodWithName:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-removeMethod:">removeMethod: </a></h3>
|
||||
- (void) <b>removeMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-removeMethodWithName:">removeMethodWithName: </a></h3>
|
||||
- (void) <b>removeMethodWithName:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STActor-setEnvironment:">setEnvironment: </a></h3>
|
||||
- (void) <b>setEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
|
||||
<p>
|
||||
|
||||
Set object's environment. Note: This method should be
|
||||
replaced by some other, more clever mechanism.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STActor_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STActor Class</h2>
|
||||
<h3><a name="ivariable$STActor*environment">environment</a></h3>
|
||||
@protected STEnvironment* <b>environment</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STActor*ivars">ivars</a></h3>
|
||||
@protected NSMutableDictionary* <b>ivars</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STActor*methodDictionary">methodDictionary</a></h3>
|
||||
@protected NSMutableDictionary* <b>methodDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STBundleInfo" up="StepTalk">
|
||||
<head>
|
||||
<title>STBundleInfo class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
@ -21,6 +18,41 @@
|
|||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSArray*" name="allClasses" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSBundle*" name="bundle" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSDictionary*" name="objectReferenceDictionary" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSArray*" name="publicClasses" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="Class" name="scriptingInfoClass" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="scriptingInfoClassName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="BOOL" name="useAllClasses" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="id" factory="yes">
|
||||
<sel>infoForBundle:</sel>
|
||||
<arg type="NSBundle*">aBundle</arg>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STBundleInfo class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STBundleInfo">STBundleInfo class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -47,6 +46,9 @@
|
|||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STBundleInfo_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$STBundleInfo+infoForBundle:">+infoForBundle:</a></li>
|
||||
|
@ -57,7 +59,7 @@
|
|||
<li><a rel="gsdoc" href="STBundleInfo.html#method$STBundleInfo-publicClassNames">-publicClassNames</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STBundleInfo+infoForBundle:">infoForBundle:</a></h3>
|
||||
<h3><a name="method$STBundleInfo+infoForBundle:">infoForBundle: </a></h3>
|
||||
+ (id) <b>infoForBundle:</b> (NSBundle*)aBundle;<br />
|
||||
<p>
|
||||
|
||||
|
@ -65,7 +67,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STBundleInfo-allClassNames">allClassNames</a></h3>
|
||||
<h3><a name="method$STBundleInfo-allClassNames">allClassNames </a></h3>
|
||||
- (NSArray*) <b>allClassNames</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -73,7 +75,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STBundleInfo-initWithBundle:">initWithBundle:</a></h3>
|
||||
<h3><a name="method$STBundleInfo-initWithBundle:">initWithBundle: </a></h3>
|
||||
- (id) <b>initWithBundle:</b> (NSBundle*)aBundle;<br />
|
||||
This is a designated initialiser for the class.<br />
|
||||
<p>
|
||||
|
@ -82,7 +84,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STBundleInfo-namedObjects">namedObjects</a></h3>
|
||||
<h3><a name="method$STBundleInfo-namedObjects">namedObjects </a></h3>
|
||||
- (NSDictionary*) <b>namedObjects</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -92,7 +94,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STBundleInfo-objectReferenceDictionary">objectReferenceDictionary</a></h3>
|
||||
<h3><a name="method$STBundleInfo-objectReferenceDictionary">objectReferenceDictionary </a></h3>
|
||||
- (NSDictionary*) <b>objectReferenceDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -103,7 +105,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STBundleInfo-publicClassNames">publicClassNames</a></h3>
|
||||
<h3><a name="method$STBundleInfo-publicClassNames">publicClassNames </a></h3>
|
||||
- (NSArray*) <b>publicClassNames</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -111,6 +113,65 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STBundleInfo_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STBundleInfo Class</h2>
|
||||
<h3><a name="ivariable$STBundleInfo*allClasses">allClasses</a></h3>
|
||||
@protected NSArray* <b>allClasses</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STBundleInfo*bundle">bundle</a></h3>
|
||||
@protected NSBundle* <b>bundle</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STBundleInfo*objectReferenceDictionary">objectReferenceDictionary</a></h3>
|
||||
@protected NSDictionary* <b>objectReferenceDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STBundleInfo*publicClasses">publicClasses</a></h3>
|
||||
@protected NSArray* <b>publicClasses</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STBundleInfo*scriptingInfoClass">scriptingInfoClass</a></h3>
|
||||
@protected Class <b>scriptingInfoClass</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STBundleInfo*scriptingInfoClassName">scriptingInfoClassName</a></h3>
|
||||
@protected NSString* <b>scriptingInfoClassName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STBundleInfo*useAllClasses">useAllClasses</a></h3>
|
||||
@protected BOOL <b>useAllClasses</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
|
||||
<h1><a name="002000000000">
|
||||
Software documentation for the NSBundle(STAdditions)
|
||||
|
@ -130,15 +191,15 @@ This is a designated initialiser for the class.<br />
|
|||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+allFrameworkNames">+allFrameworkNames</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+bundleForFrameworkWithName:">+bundleForFrameworkWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+pathForFrameworkWithName:">+pathForFrameworkWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+stepTalkBundleNames">+stepTalkBundleNames</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle+stepTalkBundleWithName:">+stepTalkBundleWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle-scriptingInfoDictionary">-scriptingInfoDictionary</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+allFrameworkNames">+allFrameworkNames</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+bundleForFrameworkWithName:">+bundleForFrameworkWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+pathForFrameworkWithName:">+pathForFrameworkWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+stepTalkBundleNames">+stepTalkBundleNames</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)+stepTalkBundleWithName:">+stepTalkBundleWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#method$NSBundle(STAdditions)-scriptingInfoDictionary">-scriptingInfoDictionary</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$NSBundle(STAdditions)+allFrameworkNames">allFrameworkNames</a></h3>
|
||||
<h3><a name="method$NSBundle(STAdditions)+allFrameworkNames">allFrameworkNames </a></h3>
|
||||
+ (NSArray*) <b>allFrameworkNames</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -147,7 +208,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSBundle(STAdditions)+bundleForFrameworkWithName:">bundleForFrameworkWithName:</a></h3>
|
||||
<h3><a name="method$NSBundle(STAdditions)+bundleForFrameworkWithName:">bundleForFrameworkWithName: </a></h3>
|
||||
+ (NSBundle*) <b>bundleForFrameworkWithName:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
|
@ -156,7 +217,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSBundle(STAdditions)+pathForFrameworkWithName:">pathForFrameworkWithName:</a></h3>
|
||||
<h3><a name="method$NSBundle(STAdditions)+pathForFrameworkWithName:">pathForFrameworkWithName: </a></h3>
|
||||
+ (NSString*) <b>pathForFrameworkWithName:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
|
@ -165,7 +226,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleNames">stepTalkBundleNames</a></h3>
|
||||
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleNames">stepTalkBundleNames </a></h3>
|
||||
+ (NSArray*) <b>stepTalkBundleNames</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -174,7 +235,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleWithName:">stepTalkBundleWithName:</a></h3>
|
||||
<h3><a name="method$NSBundle(STAdditions)+stepTalkBundleWithName:">stepTalkBundleWithName: </a></h3>
|
||||
+ (id) <b>stepTalkBundleWithName:</b> (NSString*)moduleName;<br />
|
||||
<p>
|
||||
|
||||
|
@ -182,7 +243,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$NSBundle(STAdditions)-scriptingInfoDictionary">scriptingInfoDictionary</a></h3>
|
||||
<h3><a name="method$NSBundle(STAdditions)-scriptingInfoDictionary">scriptingInfoDictionary </a></h3>
|
||||
- (NSDictionary*) <b>scriptingInfoDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -192,5 +253,6 @@ This is a designated initialiser for the class.<br />
|
|||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
154
Documentation/Reference/STContext.gsdoc
Normal file
154
Documentation/Reference/STContext.gsdoc
Normal file
|
@ -0,0 +1,154 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STContext" up="StepTalk">
|
||||
<head>
|
||||
<title>STEnvironment class reference</title>
|
||||
<author name="Stefan Urbanek">
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STContext class
|
||||
</heading>
|
||||
<class name="STContext" super="NSObject">
|
||||
<declared>StepTalk/STContext.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="BOOL" name="createsUnknownObjects" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="BOOL" name="fullScripting" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="objectDictionary" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="STContext*" name="parentContext" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="void">
|
||||
<sel>addNamedObjectsFromDictionary:</sel>
|
||||
<arg type="NSDictionary*">dict</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="BOOL">
|
||||
<sel>createsUnknownObjects</sel>
|
||||
<desc>
|
||||
Returns <code>YES</code> if unknown objects are
|
||||
being created.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="BOOL">
|
||||
<sel>fullScriptingEnabled</sel>
|
||||
<desc>
|
||||
Returns <code>YES</code> if full scripting is
|
||||
enabled.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>knownObjectNames</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSMutableDictionary*">
|
||||
<sel>objectDictionary</sel>
|
||||
<desc>
|
||||
Returns a dictionary of all named objects in the
|
||||
environment.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STObjectReference*">
|
||||
<sel>objectReferenceForObjectWithName:</sel>
|
||||
<arg type="NSString*">name</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>objectWithName:</sel>
|
||||
<arg type="NSString*">objName</arg>
|
||||
<desc>
|
||||
Return object with name <var>objName</var>. If
|
||||
object is not found int the object dictionary, then
|
||||
object finders are used to try to find the object.
|
||||
If object is found by an object finder, then it is put
|
||||
into the object dicitonary. If there is no object with
|
||||
given name, <var><code>nil</code></var> is returned.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STContext*">
|
||||
<sel>parentContext</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>removeObjectWithName:</sel>
|
||||
<arg type="NSString*">objName</arg>
|
||||
<desc>
|
||||
Remove object named <var>objName</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setCreatesUnknownObjects:</sel>
|
||||
<arg type="BOOL">flag</arg>
|
||||
<desc>
|
||||
<p>
|
||||
Enable or disable creation of unknown objects.
|
||||
Normally you get <code>nil</code> if you request
|
||||
for non-existant object. If <var>flag</var> is
|
||||
<code>YES</code> then by requesting non-existant
|
||||
object, name for that object is created and it is
|
||||
set no STNil.
|
||||
</p>
|
||||
<p>
|
||||
Note: This method will be probably removed (moved
|
||||
to Smalltalk language bundle).
|
||||
</p>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setFullScriptingEnabled:</sel>
|
||||
<arg type="BOOL">flag</arg>
|
||||
<desc>
|
||||
Full scripting <br /> Enable or disable full
|
||||
scripting. When full scripting is enabled, you
|
||||
may send any message to any object.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setObject:</sel>
|
||||
<arg type="id">anObject</arg>
|
||||
<sel>forName:</sel>
|
||||
<arg type="NSString*">objName</arg>
|
||||
<desc>
|
||||
Register object <var>anObject</var> with name
|
||||
<var>objName</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setParentContext:</sel>
|
||||
<arg type="STContext*">context</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
232
Documentation/Reference/STContext.html
Normal file
232
Documentation/Reference/STContext.html
Normal file
|
@ -0,0 +1,232 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STEnvironment class reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STContext">STEnvironment class reference</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STContext class
|
||||
</a></h1>
|
||||
<h2><a name="class$STContext">STContext</a> : NSObject</h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STContext.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STContext_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-addNamedObjectsFromDictionary:">-addNamedObjectsFromDictionary:</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-createsUnknownObjects">-createsUnknownObjects</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-fullScriptingEnabled">-fullScriptingEnabled</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-knownObjectNames">-knownObjectNames</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-objectDictionary">-objectDictionary</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-objectReferenceForObjectWithName:">-objectReferenceForObjectWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-objectWithName:">-objectWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-parentContext">-parentContext</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-removeObjectWithName:">-removeObjectWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-setCreatesUnknownObjects:">-setCreatesUnknownObjects:</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-setFullScriptingEnabled:">-setFullScriptingEnabled:</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-setObject:forName:">-setObject:forName:</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#method$STContext-setParentContext:">-setParentContext:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STContext-addNamedObjectsFromDictionary:">addNamedObjectsFromDictionary: </a></h3>
|
||||
- (void) <b>addNamedObjectsFromDictionary:</b> (NSDictionary*)dict;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-createsUnknownObjects">createsUnknownObjects </a></h3>
|
||||
- (BOOL) <b>createsUnknownObjects</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns <code>YES</code> if unknown objects are
|
||||
being created.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-fullScriptingEnabled">fullScriptingEnabled </a></h3>
|
||||
- (BOOL) <b>fullScriptingEnabled</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns <code>YES</code> if full scripting is
|
||||
enabled.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-knownObjectNames">knownObjectNames </a></h3>
|
||||
- (NSArray*) <b>knownObjectNames</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-objectDictionary">objectDictionary </a></h3>
|
||||
- (NSMutableDictionary*) <b>objectDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns a dictionary of all named objects in the
|
||||
environment.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-objectReferenceForObjectWithName:">objectReferenceForObjectWithName: </a></h3>
|
||||
- (<a rel="gsdoc" href="STObjectReference.html#class$STObjectReference">STObjectReference</a>*) <b>objectReferenceForObjectWithName:</b> (NSString*)name;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-objectWithName:">objectWithName: </a></h3>
|
||||
- (id) <b>objectWithName:</b> (NSString*)objName;<br />
|
||||
<p>
|
||||
|
||||
Return object with name <var>objName</var>. If
|
||||
object is not found int the object dictionary, then
|
||||
object finders are used to try to find the object.
|
||||
If object is found by an object finder, then it is put
|
||||
into the object dicitonary. If there is no object with
|
||||
given name, <var><code>nil</code></var> is returned.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-parentContext">parentContext </a></h3>
|
||||
- (<a rel="gsdoc" href="#class$STContext">STContext</a>*) <b>parentContext</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-removeObjectWithName:">removeObjectWithName: </a></h3>
|
||||
- (void) <b>removeObjectWithName:</b> (NSString*)objName;<br />
|
||||
<p>
|
||||
|
||||
Remove object named <var>objName</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-setCreatesUnknownObjects:">setCreatesUnknownObjects: </a></h3>
|
||||
- (void) <b>setCreatesUnknownObjects:</b> (BOOL)flag;<br />
|
||||
<p>
|
||||
|
||||
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Enable or disable creation of unknown objects.
|
||||
Normally you get <code>nil</code> if you request
|
||||
for non-existant object. If <var>flag</var> is
|
||||
<code>YES</code> then by requesting non-existant
|
||||
object, name for that object is created and it is
|
||||
set no STNil.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Note: This method will be probably removed (moved
|
||||
to Smalltalk language bundle).
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-setFullScriptingEnabled:">setFullScriptingEnabled: </a></h3>
|
||||
- (void) <b>setFullScriptingEnabled:</b> (BOOL)flag;<br />
|
||||
<p>
|
||||
|
||||
Full scripting <br /> Enable or disable full
|
||||
scripting. When full scripting is enabled, you
|
||||
may send any message to any object.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-setObject:forName:">setObject: forName: </a></h3>
|
||||
- (void) <b>setObject:</b> (id)anObject<b> forName:</b> (NSString*)objName;<br />
|
||||
<p>
|
||||
|
||||
Register object <var>anObject</var> with name
|
||||
<var>objName</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STContext-setParentContext:">setParentContext: </a></h3>
|
||||
- (void) <b>setParentContext:</b> (<a rel="gsdoc" href="#class$STContext">STContext</a>*)context;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STContext_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STContext Class</h2>
|
||||
<h3><a name="ivariable$STContext*createsUnknownObjects">createsUnknownObjects</a></h3>
|
||||
@protected BOOL <b>createsUnknownObjects</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STContext*fullScripting">fullScripting</a></h3>
|
||||
@protected BOOL <b>fullScripting</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STContext*objectDictionary">objectDictionary</a></h3>
|
||||
@protected NSMutableDictionary* <b>objectDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STContext*parentContext">parentContext</a></h3>
|
||||
@protected STContext* <b>parentContext</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
131
Documentation/Reference/STConversation.gsdoc
Normal file
131
Documentation/Reference/STConversation.gsdoc
Normal file
|
@ -0,0 +1,131 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STConversation" up="StepTalk">
|
||||
<head>
|
||||
<title>STConversation class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STConversation class
|
||||
</heading>
|
||||
<class name="STConversation" super="NSObject">
|
||||
<declared>StepTalk/STConversation.h</declared>
|
||||
<conform>STConversation</conform>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="STContext*" name="context" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="STEngine*" name="engine" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="languageName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="id" name="returnValue" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="STContext*">
|
||||
<sel>context</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithContext:</sel>
|
||||
<arg type="STContext*">aContext</arg>
|
||||
<sel>language:</sel>
|
||||
<arg type="NSString*">aLanguage</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>language</sel>
|
||||
<desc>
|
||||
Return name of the language used in the receiver
|
||||
conversation
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>runScriptFromString:</sel>
|
||||
<arg type="NSString*">aString</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setLanguage:</sel>
|
||||
<arg type="NSString*">newLanguage</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STConversation protocol
|
||||
</heading>
|
||||
<protocol name="STConversation">
|
||||
<declared>StepTalk/STConversation.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<method type="void">
|
||||
<sel>interpretScript:</sel>
|
||||
<arg type="bycopy NSString*">aString</arg>
|
||||
<desc>
|
||||
Interpret given string as a script in the
|
||||
receiver environment.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="bycopy NSArray*">
|
||||
<sel>knownLanguages</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>language</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>result</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="bycopy id">
|
||||
<sel>resultByCopy</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setLanguage:</sel>
|
||||
<arg type="NSString*">newLanguage</arg>
|
||||
<desc>
|
||||
Set language for the receiver.
|
||||
</desc>
|
||||
</method>
|
||||
</protocol>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
221
Documentation/Reference/STConversation.html
Normal file
221
Documentation/Reference/STConversation.html
Normal file
|
@ -0,0 +1,221 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STConversation class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STConversation">STConversation class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
|
||||
|
||||
<div>
|
||||
<hr width="50%" align="left" />
|
||||
<h3>Contents -</h3>
|
||||
<ol>
|
||||
<li>
|
||||
<a href="#001000000000">Software documentation for the STConversation class</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#002000000000">Software documentation for the STConversation protocol</a>
|
||||
</li>
|
||||
</ol>
|
||||
<hr width="50%" align="left" />
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STConversation class
|
||||
</a></h1>
|
||||
<h2><a name="class$STConversation">STConversation</a> : NSObject</h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STConversation.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Conforms to:</b></dt>
|
||||
<dd><a rel="gsdoc" href="#protocol$(STConversation)">STConversation</a></dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STConversation_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-context">-context</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-initWithContext:language:">-initWithContext:language:</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-language">-language</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-runScriptFromString:">-runScriptFromString:</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$STConversation-setLanguage:">-setLanguage:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STConversation-context">context </a></h3>
|
||||
- (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*) <b>context</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STConversation-initWithContext:language:">initWithContext: language: </a></h3>
|
||||
- (id) <b>initWithContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)aContext<b> language:</b> (NSString*)aLanguage;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STConversation-language">language </a></h3>
|
||||
- (NSString*) <b>language</b>;<br />
|
||||
<p>
|
||||
|
||||
Return name of the language used in the receiver
|
||||
conversation
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STConversation-runScriptFromString:">runScriptFromString: </a></h3>
|
||||
- (id) <b>runScriptFromString:</b> (NSString*)aString;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STConversation-setLanguage:">setLanguage: </a></h3>
|
||||
- (void) <b>setLanguage:</b> (NSString*)newLanguage;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STConversation_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STConversation Class</h2>
|
||||
<h3><a name="ivariable$STConversation*context">context</a></h3>
|
||||
@protected STContext* <b>context</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STConversation*engine">engine</a></h3>
|
||||
@protected STEngine* <b>engine</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STConversation*languageName">languageName</a></h3>
|
||||
@protected NSString* <b>languageName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STConversation*returnValue">returnValue</a></h3>
|
||||
@protected id <b>returnValue</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
|
||||
<h1><a name="002000000000">
|
||||
Software documentation for the STConversation protocol
|
||||
</a></h1>
|
||||
<h2><a name="protocol$(STConversation)">STConversation</a></h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STConversation.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-interpretScript:">-interpretScript:</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-knownLanguages">-knownLanguages</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-language">-language</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-result">-result</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-resultByCopy">-resultByCopy</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#method$(STConversation)-setLanguage:">-setLanguage:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$(STConversation)-interpretScript:">interpretScript: </a></h3>
|
||||
- (void) <b>interpretScript:</b> (bycopy NSString*)aString;<br />
|
||||
<p>
|
||||
|
||||
Interpret given string as a script in the
|
||||
receiver environment.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STConversation)-knownLanguages">knownLanguages </a></h3>
|
||||
- (bycopy NSArray*) <b>knownLanguages</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STConversation)-language">language </a></h3>
|
||||
- (NSString*) <b>language</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STConversation)-result">result </a></h3>
|
||||
- (id) <b>result</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STConversation)-resultByCopy">resultByCopy </a></h3>
|
||||
- (bycopy id) <b>resultByCopy</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STConversation)-setLanguage:">setLanguage: </a></h3>
|
||||
- (void) <b>setLanguage:</b> (NSString*)newLanguage;<br />
|
||||
<p>
|
||||
|
||||
Set language for the receiver.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STEngine" up="StepTalk">
|
||||
<head>
|
||||
<title>STEngine class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
@ -23,53 +20,48 @@
|
|||
to intepret scripts.
|
||||
</desc>
|
||||
<method type="STEngine*" factory="yes">
|
||||
<sel>engineForFileType:</sel>
|
||||
<arg type="NSString*">fileType</arg>
|
||||
<desc>
|
||||
Return a scripting engine for the language used in
|
||||
files of type <var>fileType</var>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STEngine*" factory="yes">
|
||||
<sel>engineForLanguageWithName:</sel>
|
||||
<sel>engineForLanguage:</sel>
|
||||
<arg type="NSString*">name</arg>
|
||||
<desc>
|
||||
Instance creation <br /> Return a scripting engine
|
||||
for language with specified <var>name</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STEnvironment*">
|
||||
<sel>defaultEnvironment</sel>
|
||||
<desc>
|
||||
Scripting Environment <br /> Return the default
|
||||
scripting environment for the engine.
|
||||
for language with specified <var>name</var>. The engine
|
||||
is get from default language manager.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>executeCode:</sel>
|
||||
<arg type="NSString*">code</arg>
|
||||
<sel>executeMethod:</sel>
|
||||
<arg type="id<STMethod>">aMethod</arg>
|
||||
<sel>forReceiver:</sel>
|
||||
<arg type="id">anObject</arg>
|
||||
<sel>withArguments:</sel>
|
||||
<arg type="NSArray*">args</arg>
|
||||
<sel>inContext:</sel>
|
||||
<arg type="STContext*">env</arg>
|
||||
<desc>
|
||||
Execude source <var>code</var> <var>code</var> in
|
||||
default scripting environment.
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" override="subclass">
|
||||
<sel>executeCode:</sel>
|
||||
<arg type="NSString*">code</arg>
|
||||
<sel>inEnvironment:</sel>
|
||||
<arg type="STEnvironment*">env</arg>
|
||||
<sel>interpretScript:</sel>
|
||||
<arg type="NSString*">script</arg>
|
||||
<sel>inContext:</sel>
|
||||
<arg type="STContext*">context</arg>
|
||||
<desc>
|
||||
Execude source <var>code</var> <var>code</var> in
|
||||
an environment <var>env</var>. This is the method, that
|
||||
has to be implemented by those who are writing a
|
||||
language engine.
|
||||
Interpret source code <var>code</var> in a
|
||||
<var>context</var> <var>context</var>. This is the
|
||||
method, that has to be implemented by those who are
|
||||
writing a language engine.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setDefaultEnvironment:</sel>
|
||||
<arg type="STEnvironment*">anEnvironment</arg>
|
||||
<method type="STMethod*">
|
||||
<sel>methodFromSource:</sel>
|
||||
<arg type="NSString*">sourceString</arg>
|
||||
<sel>forReceiver:</sel>
|
||||
<arg type="id">receiver</arg>
|
||||
<sel>inContext:</sel>
|
||||
<arg type="STContext*">env</arg>
|
||||
<desc>
|
||||
Set the default scripting environment for the engine.
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="BOOL">
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STEngine class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STEngine">STEngine class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -38,72 +37,52 @@
|
|||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine+engineForFileType:">+engineForFileType:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine+engineForLanguageWithName:">+engineForLanguageWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-defaultEnvironment">-defaultEnvironment</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeCode:">-executeCode:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeCode:inEnvironment:">-executeCode:inEnvironment:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-setDefaultEnvironment:">-setDefaultEnvironment:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine+engineForLanguage:">+engineForLanguage:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-executeMethod:forReceiver:withArguments:inContext:">-executeMethod:forReceiver:withArguments:inContext:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-interpretScript:inContext:">-interpretScript:inContext:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-methodFromSource:forReceiver:inContext:">-methodFromSource:forReceiver:inContext:</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#method$STEngine-understandsCode:">-understandsCode:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STEngine+engineForFileType:">engineForFileType:</a></h3>
|
||||
+ (<a rel="gsdoc" href="#class$STEngine">STEngine</a>*) <b>engineForFileType:</b> (NSString*)fileType;<br />
|
||||
<p>
|
||||
|
||||
Return a scripting engine for the language used in
|
||||
files of type <var>fileType</var>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEngine+engineForLanguageWithName:">engineForLanguageWithName:</a></h3>
|
||||
+ (<a rel="gsdoc" href="#class$STEngine">STEngine</a>*) <b>engineForLanguageWithName:</b> (NSString*)name;<br />
|
||||
<h3><a name="method$STEngine+engineForLanguage:">engineForLanguage: </a></h3>
|
||||
+ (<a rel="gsdoc" href="#class$STEngine">STEngine</a>*) <b>engineForLanguage:</b> (NSString*)name;<br />
|
||||
<p>
|
||||
|
||||
Instance creation <br /> Return a scripting engine
|
||||
for language with specified <var>name</var>.
|
||||
for language with specified <var>name</var>. The engine
|
||||
is get from default language manager.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEngine-defaultEnvironment">defaultEnvironment</a></h3>
|
||||
- (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*) <b>defaultEnvironment</b>;<br />
|
||||
<h3><a name="method$STEngine-executeMethod:forReceiver:withArguments:inContext:">executeMethod: forReceiver: withArguments: inContext: </a></h3>
|
||||
- (id) <b>executeMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod<b> forReceiver:</b> (id)anObject<b> withArguments:</b> (NSArray*)args<b> inContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)env;<br />
|
||||
<p>
|
||||
|
||||
Scripting Environment <br /> Return the default
|
||||
scripting environment for the engine.
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEngine-executeCode:">executeCode:</a></h3>
|
||||
- (id) <b>executeCode:</b> (NSString*)code;<br />
|
||||
<p>
|
||||
|
||||
Execude source <var>code</var> <var>code</var> in
|
||||
default scripting environment.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEngine-executeCode:inEnvironment:">executeCode:inEnvironment:</a></h3>
|
||||
- (id) <b>executeCode:</b> (NSString*)code<b> inEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
|
||||
<h3><a name="method$STEngine-interpretScript:inContext:">interpretScript: inContext: </a></h3>
|
||||
- (id) <b>interpretScript:</b> (NSString*)script<b> inContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)context;<br />
|
||||
Subclasses <strong>should</strong> override this method.<br />
|
||||
<p>
|
||||
|
||||
Execude source <var>code</var> <var>code</var> in
|
||||
an environment <var>env</var>. This is the method, that
|
||||
has to be implemented by those who are writing a
|
||||
language engine.
|
||||
Interpret source code <var>code</var> in a
|
||||
<var>context</var> <var>context</var>. This is the
|
||||
method, that has to be implemented by those who are
|
||||
writing a language engine.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEngine-setDefaultEnvironment:">setDefaultEnvironment:</a></h3>
|
||||
- (void) <b>setDefaultEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)anEnvironment;<br />
|
||||
<h3><a name="method$STEngine-methodFromSource:forReceiver:inContext:">methodFromSource: forReceiver: inContext: </a></h3>
|
||||
- (STMethod*) <b>methodFromSource:</b> (NSString*)sourceString<b> forReceiver:</b> (id)receiver<b> inContext:</b> (<a rel="gsdoc" href="STContext.html#class$STContext">STContext</a>*)env;<br />
|
||||
<p>
|
||||
|
||||
Set the default scripting environment for the engine.
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEngine-understandsCode:">understandsCode:</a></h3>
|
||||
<h3><a name="method$STEngine-understandsCode:">understandsCode: </a></h3>
|
||||
- (BOOL) <b>understandsCode:</b> (NSString*)code;<br />
|
||||
<p>
|
||||
|
||||
|
@ -113,5 +92,6 @@ Subclasses <strong>should</strong> override this method.<br />
|
|||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STEnvironment" up="StepTalk">
|
||||
<head>
|
||||
<title>STEnvironment class reference</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
@ -16,17 +13,41 @@
|
|||
<heading>
|
||||
Software documentation for the STEnvironment class
|
||||
</heading>
|
||||
<class name="STEnvironment" super="NSObject">
|
||||
<class name="STEnvironment" super="STContext">
|
||||
<declared>StepTalk/STEnvironment.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<method type="STEnvironment*" factory="yes">
|
||||
<sel>defaultScriptingEnvironment</sel>
|
||||
<ivariable type="NSMutableDictionary*" name="classes" validity="protected">
|
||||
<desc>
|
||||
Creating environment <br /> Creates and
|
||||
initialises scripting environment using
|
||||
standard description.
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="STEnvironmentDescription*" name="description" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="infoCache" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableArray*" name="loadedBundles" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="objectFinders" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="STEnvironment*" factory="yes">
|
||||
<sel>environmentWithDefaultDescription</sel>
|
||||
<desc>
|
||||
Creates and initialises new scripting environment
|
||||
using default description.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" factory="yes">
|
||||
|
@ -38,11 +59,11 @@
|
|||
</desc>
|
||||
</method>
|
||||
<method type="id" factory="yes">
|
||||
<sel>environmentWithDescriptionName:</sel>
|
||||
<arg type="NSString*">descName</arg>
|
||||
<sel>sharedEnvironment</sel>
|
||||
<desc>
|
||||
Creates and initialises scripting environment using
|
||||
description with name <var>descName</var>.
|
||||
Creating environment <br /> Returns an instance of
|
||||
the scripting environment that is shared in the scope
|
||||
of actual application or process.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
|
@ -54,27 +75,6 @@
|
|||
internally to add classes provided by modules.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>addNamedObjectsFromDictionary:</sel>
|
||||
<arg type="NSDictionary*">dict</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="BOOL">
|
||||
<sel>createsUnknownObjects</sel>
|
||||
<desc>
|
||||
Returns <code>YES</code> if unknown objects are
|
||||
being created.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="BOOL">
|
||||
<sel>fullScriptingEnabled</sel>
|
||||
<desc>
|
||||
Returns <code>YES</code> if full scripting is
|
||||
enabled.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="BOOL">
|
||||
<sel>includeBundle:</sel>
|
||||
<arg type="NSBundle*">aBundle</arg>
|
||||
|
@ -84,7 +84,7 @@
|
|||
bundle is already loaded, nothing happens.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<method type="BOOL">
|
||||
<sel>includeFramework:</sel>
|
||||
<arg type="NSString*">frameworkName</arg>
|
||||
<desc>
|
||||
|
@ -95,7 +95,7 @@
|
|||
</desc>
|
||||
</method>
|
||||
<method type="id" init="yes">
|
||||
<sel>initDefault</sel>
|
||||
<sel>initWithDefaultDescription</sel>
|
||||
<desc>
|
||||
Initialises scripting environment using default
|
||||
description.
|
||||
|
@ -103,26 +103,12 @@
|
|||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithDescription:</sel>
|
||||
<arg type="STEnvironmentDescription*">aDescription</arg>
|
||||
<arg type="bycopy STEnvironmentDescription*">aDescription</arg>
|
||||
<desc>
|
||||
Initialises scripting environment using
|
||||
scripting description <var>aDescription</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" init="yes">
|
||||
<sel>initWithDescriptionName:</sel>
|
||||
<arg type="NSString*">descName</arg>
|
||||
<desc>
|
||||
Initialises scripting environment using
|
||||
description with name <var>descName</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>knownObjectNames</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>loadModule:</sel>
|
||||
<arg type="NSString*">moduleName</arg>
|
||||
|
@ -133,33 +119,6 @@
|
|||
directory.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSMutableDictionary*">
|
||||
<sel>objectDictionary</sel>
|
||||
<desc>
|
||||
Named objects and object references <br /> Returns a
|
||||
dictionary of all named objects in the
|
||||
environment.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STObjectReference*">
|
||||
<sel>objectReferenceForObjectWithName:</sel>
|
||||
<arg type="NSString*">name</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>objectWithName:</sel>
|
||||
<arg type="NSString*">objName</arg>
|
||||
<desc>
|
||||
Return object with name <var>objName</var>. If
|
||||
object is not found int the object dictionary, then
|
||||
object finders are used to try to find the object.
|
||||
If object is found by an object finder, then it is put
|
||||
into the object dicitonary. If there is no object with
|
||||
given name, <var><code>nil</code></var> is returned.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>registerObjectFinder:</sel>
|
||||
<arg type="id">finder</arg>
|
||||
|
@ -189,50 +148,6 @@
|
|||
<var>name</var>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>removeObjectWithName:</sel>
|
||||
<arg type="NSString*">objName</arg>
|
||||
<desc>
|
||||
Remove object named <var>objName</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setCreatesUnknownObjects:</sel>
|
||||
<arg type="BOOL">flag</arg>
|
||||
<desc>
|
||||
<p>
|
||||
Enable or disable creation of unknown objects.
|
||||
Normally you get <code>nil</code> if you request
|
||||
for non-existant object. If <var>flag</var> is
|
||||
<code>YES</code> then by requesting non-existant
|
||||
object, name for that object is created and it is
|
||||
set no STNil.
|
||||
</p>
|
||||
<p>
|
||||
Note: This method will be probably removed (moved
|
||||
to Smalltalk language bundle).
|
||||
</p>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setFullScriptingEnabled:</sel>
|
||||
<arg type="BOOL">flag</arg>
|
||||
<desc>
|
||||
Full scripting <br /> Enable or disable full
|
||||
scripting. When full scripting is enabled, you
|
||||
may send any message to any object.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setObject:</sel>
|
||||
<arg type="id">anObject</arg>
|
||||
<sel>forName:</sel>
|
||||
<arg type="NSString*">objName</arg>
|
||||
<desc>
|
||||
Register object <var>anObject</var> with name
|
||||
<var>objName</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>translateSelector:</sel>
|
||||
<arg type="NSString*">aString</arg>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STEnvironment class reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STEnvironment">STEnvironment class reference</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -23,7 +22,7 @@
|
|||
<h1><a name="001000000000">
|
||||
Software documentation for the STEnvironment class
|
||||
</a></h1>
|
||||
<h2><a name="class$STEnvironment">STEnvironment</a> : NSObject</h2>
|
||||
<h2><a name="class$STEnvironment">STEnvironment</a> : <a rel="gsdoc" href="STContext.html#class$STContext">STContext</a></h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
|
@ -35,47 +34,37 @@
|
|||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STEnvironment_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+defaultScriptingEnvironment">+defaultScriptingEnvironment</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+environmentWithDefaultDescription">+environmentWithDefaultDescription</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+environmentWithDescription:">+environmentWithDescription:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+environmentWithDescriptionName:">+environmentWithDescriptionName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment+sharedEnvironment">+sharedEnvironment</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-addClassesWithNames:">-addClassesWithNames:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-addNamedObjectsFromDictionary:">-addNamedObjectsFromDictionary:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-createsUnknownObjects">-createsUnknownObjects</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-fullScriptingEnabled">-fullScriptingEnabled</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-includeBundle:">-includeBundle:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-includeFramework:">-includeFramework:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initDefault">-initDefault</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initWithDefaultDescription">-initWithDefaultDescription</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initWithDescription:">-initWithDescription:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-initWithDescriptionName:">-initWithDescriptionName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-knownObjectNames">-knownObjectNames</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-loadModule:">-loadModule:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-objectDictionary">-objectDictionary</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-objectReferenceForObjectWithName:">-objectReferenceForObjectWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-objectWithName:">-objectWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-registerObjectFinder:name:">-registerObjectFinder:name:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-registerObjectFinderNamed:">-registerObjectFinderNamed:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-removeObjectFinderWithName:">-removeObjectFinderWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-removeObjectWithName:">-removeObjectWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-setCreatesUnknownObjects:">-setCreatesUnknownObjects:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-setFullScriptingEnabled:">-setFullScriptingEnabled:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-setObject:forName:">-setObject:forName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#method$STEnvironment-translateSelector:forReceiver:">-translateSelector:forReceiver:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STEnvironment+defaultScriptingEnvironment">defaultScriptingEnvironment</a></h3>
|
||||
+ (<a rel="gsdoc" href="#class$STEnvironment">STEnvironment</a>*) <b>defaultScriptingEnvironment</b>;<br />
|
||||
<h3><a name="method$STEnvironment+environmentWithDefaultDescription">environmentWithDefaultDescription </a></h3>
|
||||
+ (<a rel="gsdoc" href="#class$STEnvironment">STEnvironment</a>*) <b>environmentWithDefaultDescription</b>;<br />
|
||||
<p>
|
||||
|
||||
Creating environment <br /> Creates and
|
||||
initialises scripting environment using
|
||||
standard description.
|
||||
Creates and initialises new scripting environment
|
||||
using default description.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment+environmentWithDescription:">environmentWithDescription:</a></h3>
|
||||
+ (id) <b>environmentWithDescription:</b> (STEnvironmentDescription*)aDescription;<br />
|
||||
<h3><a name="method$STEnvironment+environmentWithDescription:">environmentWithDescription: </a></h3>
|
||||
+ (id) <b>environmentWithDescription:</b> (<a rel="gsdoc" href="STEnvironmentDescription.html#class$STEnvironmentDescription">STEnvironmentDescription</a>*)aDescription;<br />
|
||||
<p>
|
||||
|
||||
Creates and initialises scripting environment using
|
||||
|
@ -83,16 +72,17 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment+environmentWithDescriptionName:">environmentWithDescriptionName:</a></h3>
|
||||
+ (id) <b>environmentWithDescriptionName:</b> (NSString*)descName;<br />
|
||||
<h3><a name="method$STEnvironment+sharedEnvironment">sharedEnvironment </a></h3>
|
||||
+ (id) <b>sharedEnvironment</b>;<br />
|
||||
<p>
|
||||
|
||||
Creates and initialises scripting environment using
|
||||
description with name <var>descName</var>.
|
||||
Creating environment <br /> Returns an instance of
|
||||
the scripting environment that is shared in the scope
|
||||
of actual application or process.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-addClassesWithNames:">addClassesWithNames:</a></h3>
|
||||
<h3><a name="method$STEnvironment-addClassesWithNames:">addClassesWithNames: </a></h3>
|
||||
- (void) <b>addClassesWithNames:</b> (NSArray*)names;<br />
|
||||
<p>
|
||||
|
||||
|
@ -102,33 +92,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-addNamedObjectsFromDictionary:">addNamedObjectsFromDictionary:</a></h3>
|
||||
- (void) <b>addNamedObjectsFromDictionary:</b> (NSDictionary*)dict;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-createsUnknownObjects">createsUnknownObjects</a></h3>
|
||||
- (BOOL) <b>createsUnknownObjects</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns <code>YES</code> if unknown objects are
|
||||
being created.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-fullScriptingEnabled">fullScriptingEnabled</a></h3>
|
||||
- (BOOL) <b>fullScriptingEnabled</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns <code>YES</code> if full scripting is
|
||||
enabled.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-includeBundle:">includeBundle:</a></h3>
|
||||
<h3><a name="method$STEnvironment-includeBundle:">includeBundle: </a></h3>
|
||||
- (BOOL) <b>includeBundle:</b> (NSBundle*)aBundle;<br />
|
||||
<p>
|
||||
|
||||
|
@ -136,8 +100,8 @@
|
|||
bundle
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-includeFramework:">includeFramework:</a></h3>
|
||||
- (void) <b>includeFramework:</b> (NSString*)frameworkName;<br />
|
||||
<h3><a name="method$STEnvironment-includeFramework:">includeFramework: </a></h3>
|
||||
- (BOOL) <b>includeFramework:</b> (NSString*)frameworkName;<br />
|
||||
<p>
|
||||
|
||||
Include scripting capabilities advertised by the
|
||||
|
@ -145,8 +109,8 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-initDefault">initDefault</a></h3>
|
||||
- (id) <b>initDefault</b>;<br />
|
||||
<h3><a name="method$STEnvironment-initWithDefaultDescription">initWithDefaultDescription </a></h3>
|
||||
- (id) <b>initWithDefaultDescription</b>;<br />
|
||||
This is a designated initialiser for the class.<br />
|
||||
<p>
|
||||
|
||||
|
@ -155,8 +119,8 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-initWithDescription:">initWithDescription:</a></h3>
|
||||
- (id) <b>initWithDescription:</b> (STEnvironmentDescription*)aDescription;<br />
|
||||
<h3><a name="method$STEnvironment-initWithDescription:">initWithDescription: </a></h3>
|
||||
- (id) <b>initWithDescription:</b> (bycopy <a rel="gsdoc" href="STEnvironmentDescription.html#class$STEnvironmentDescription">STEnvironmentDescription</a>*)aDescription;<br />
|
||||
<p>
|
||||
|
||||
Initialises scripting environment using
|
||||
|
@ -164,25 +128,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-initWithDescriptionName:">initWithDescriptionName:</a></h3>
|
||||
- (id) <b>initWithDescriptionName:</b> (NSString*)descName;<br />
|
||||
This is a designated initialiser for the class.<br />
|
||||
<p>
|
||||
|
||||
Initialises scripting environment using
|
||||
description with name <var>descName</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-knownObjectNames">knownObjectNames</a></h3>
|
||||
- (NSArray*) <b>knownObjectNames</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-loadModule:">loadModule:</a></h3>
|
||||
<h3><a name="method$STEnvironment-loadModule:">loadModule: </a></h3>
|
||||
- (void) <b>loadModule:</b> (NSString*)moduleName;<br />
|
||||
<p>
|
||||
|
||||
|
@ -193,38 +139,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-objectDictionary">objectDictionary</a></h3>
|
||||
- (NSMutableDictionary*) <b>objectDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
Named objects and object references <br /> Returns a
|
||||
dictionary of all named objects in the
|
||||
environment.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-objectReferenceForObjectWithName:">objectReferenceForObjectWithName:</a></h3>
|
||||
- (<a rel="gsdoc" href="STObjectReference.html#class$STObjectReference">STObjectReference</a>*) <b>objectReferenceForObjectWithName:</b> (NSString*)name;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-objectWithName:">objectWithName:</a></h3>
|
||||
- (id) <b>objectWithName:</b> (NSString*)objName;<br />
|
||||
<p>
|
||||
|
||||
Return object with name <var>objName</var>. If
|
||||
object is not found int the object dictionary, then
|
||||
object finders are used to try to find the object.
|
||||
If object is found by an object finder, then it is put
|
||||
into the object dicitonary. If there is no object with
|
||||
given name, <var><code>nil</code></var> is returned.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-registerObjectFinder:name:">registerObjectFinder:name:</a></h3>
|
||||
<h3><a name="method$STEnvironment-registerObjectFinder:name:">registerObjectFinder: name: </a></h3>
|
||||
- (void) <b>registerObjectFinder:</b> (id)finder<b> name:</b> (NSString*)name;<br />
|
||||
<p>
|
||||
|
||||
|
@ -234,7 +149,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-registerObjectFinderNamed:">registerObjectFinderNamed:</a></h3>
|
||||
<h3><a name="method$STEnvironment-registerObjectFinderNamed:">registerObjectFinderNamed: </a></h3>
|
||||
- (void) <b>registerObjectFinderNamed:</b> (NSString*)name;<br />
|
||||
<p>
|
||||
|
||||
|
@ -245,7 +160,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-removeObjectFinderWithName:">removeObjectFinderWithName:</a></h3>
|
||||
<h3><a name="method$STEnvironment-removeObjectFinderWithName:">removeObjectFinderWithName: </a></h3>
|
||||
- (void) <b>removeObjectFinderWithName:</b> (NSString*)name;<br />
|
||||
<p>
|
||||
|
||||
|
@ -254,63 +169,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-removeObjectWithName:">removeObjectWithName:</a></h3>
|
||||
- (void) <b>removeObjectWithName:</b> (NSString*)objName;<br />
|
||||
<p>
|
||||
|
||||
Remove object named <var>objName</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-setCreatesUnknownObjects:">setCreatesUnknownObjects:</a></h3>
|
||||
- (void) <b>setCreatesUnknownObjects:</b> (BOOL)flag;<br />
|
||||
<p>
|
||||
|
||||
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Enable or disable creation of unknown objects.
|
||||
Normally you get <code>nil</code> if you request
|
||||
for non-existant object. If <var>flag</var> is
|
||||
<code>YES</code> then by requesting non-existant
|
||||
object, name for that object is created and it is
|
||||
set no STNil.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Note: This method will be probably removed (moved
|
||||
to Smalltalk language bundle).
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-setFullScriptingEnabled:">setFullScriptingEnabled:</a></h3>
|
||||
- (void) <b>setFullScriptingEnabled:</b> (BOOL)flag;<br />
|
||||
<p>
|
||||
|
||||
Full scripting <br /> Enable or disable full
|
||||
scripting. When full scripting is enabled, you
|
||||
may send any message to any object.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-setObject:forName:">setObject:forName:</a></h3>
|
||||
- (void) <b>setObject:</b> (id)anObject<b> forName:</b> (NSString*)objName;<br />
|
||||
<p>
|
||||
|
||||
Register object <var>anObject</var> with name
|
||||
<var>objName</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironment-translateSelector:forReceiver:">translateSelector:forReceiver:</a></h3>
|
||||
<h3><a name="method$STEnvironment-translateSelector:forReceiver:">translateSelector: forReceiver: </a></h3>
|
||||
- (NSString*) <b>translateSelector:</b> (NSString*)aString<b> forReceiver:</b> (id)anObject;<br />
|
||||
<p>
|
||||
|
||||
|
@ -318,7 +177,51 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STEnvironment_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STEnvironment Class</h2>
|
||||
<h3><a name="ivariable$STEnvironment*classes">classes</a></h3>
|
||||
@protected NSMutableDictionary* <b>classes</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironment*description">description</a></h3>
|
||||
@protected STEnvironmentDescription* <b>description</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironment*infoCache">infoCache</a></h3>
|
||||
@protected NSMutableDictionary* <b>infoCache</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironment*loadedBundles">loadedBundles</a></h3>
|
||||
@protected NSMutableArray* <b>loadedBundles</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironment*objectFinders">objectFinders</a></h3>
|
||||
@protected NSMutableDictionary* <b>objectFinders</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
139
Documentation/Reference/STEnvironmentDescription.gsdoc
Normal file
139
Documentation/Reference/STEnvironmentDescription.gsdoc
Normal file
|
@ -0,0 +1,139 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STEnvironmentDescription" up="StepTalk">
|
||||
<head>
|
||||
<title>STEnvironmentDescription class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the
|
||||
STEnvironmentDescription class
|
||||
</heading>
|
||||
<class name="STEnvironmentDescription" super="NSObject">
|
||||
<declared>StepTalk/STEnvironmentDescription.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSMutableDictionary*" name="aliases" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="behaviours" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="classes" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableArray*" name="finders" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableArray*" name="frameworks" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableArray*" name="modules" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="int" name="restriction" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableArray*" name="usedDefs" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="NSString*" factory="yes">
|
||||
<sel>defaultDescriptionName</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" factory="yes">
|
||||
<sel>descriptionFromDictionary:</sel>
|
||||
<arg type="NSDictionary*">dictionary</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" factory="yes">
|
||||
<sel>descriptionWithName:</sel>
|
||||
<arg type="NSString*">descriptionName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSMutableDictionary*">
|
||||
<sel>classes</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>frameworks</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initFromDictionary:</sel>
|
||||
<arg type="NSDictionary*">def</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithName:</sel>
|
||||
<arg type="NSString*">defName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>modules</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>objectFinders</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>updateClassWithName:</sel>
|
||||
<arg type="NSString*">className</arg>
|
||||
<sel>description:</sel>
|
||||
<arg type="NSDictionary*">def</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>updateFromDictionary:</sel>
|
||||
<arg type="NSDictionary*">def</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
215
Documentation/Reference/STEnvironmentDescription.html
Normal file
215
Documentation/Reference/STEnvironmentDescription.html
Normal file
|
@ -0,0 +1,215 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STEnvironmentDescription class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STEnvironmentDescription">STEnvironmentDescription class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the
|
||||
STEnvironmentDescription class
|
||||
</a></h1>
|
||||
<h2><a name="class$STEnvironmentDescription">STEnvironmentDescription</a> : NSObject</h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STEnvironmentDescription.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STEnvironmentDescription_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription+defaultDescriptionName">+defaultDescriptionName</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription+descriptionFromDictionary:">+descriptionFromDictionary:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription+descriptionWithName:">+descriptionWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-classes">-classes</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-frameworks">-frameworks</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-initFromDictionary:">-initFromDictionary:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-initWithName:">-initWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-modules">-modules</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-objectFinders">-objectFinders</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-updateClassWithName:description:">-updateClassWithName:description:</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#method$STEnvironmentDescription-updateFromDictionary:">-updateFromDictionary:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription+defaultDescriptionName">defaultDescriptionName </a></h3>
|
||||
+ (NSString*) <b>defaultDescriptionName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription+descriptionFromDictionary:">descriptionFromDictionary: </a></h3>
|
||||
+ (id) <b>descriptionFromDictionary:</b> (NSDictionary*)dictionary;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription+descriptionWithName:">descriptionWithName: </a></h3>
|
||||
+ (id) <b>descriptionWithName:</b> (NSString*)descriptionName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-classes">classes </a></h3>
|
||||
- (NSMutableDictionary*) <b>classes</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-frameworks">frameworks </a></h3>
|
||||
- (NSArray*) <b>frameworks</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-initFromDictionary:">initFromDictionary: </a></h3>
|
||||
- (id) <b>initFromDictionary:</b> (NSDictionary*)def;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-initWithName:">initWithName: </a></h3>
|
||||
- (id) <b>initWithName:</b> (NSString*)defName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-modules">modules </a></h3>
|
||||
- (NSArray*) <b>modules</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-objectFinders">objectFinders </a></h3>
|
||||
- (NSArray*) <b>objectFinders</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-updateClassWithName:description:">updateClassWithName: description: </a></h3>
|
||||
- (void) <b>updateClassWithName:</b> (NSString*)className<b> description:</b> (NSDictionary*)def;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STEnvironmentDescription-updateFromDictionary:">updateFromDictionary: </a></h3>
|
||||
- (void) <b>updateFromDictionary:</b> (NSDictionary*)def;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STEnvironmentDescription_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STEnvironmentDescription Class</h2>
|
||||
<h3><a name="ivariable$STEnvironmentDescription*aliases">aliases</a></h3>
|
||||
@protected NSMutableDictionary* <b>aliases</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironmentDescription*behaviours">behaviours</a></h3>
|
||||
@protected NSMutableDictionary* <b>behaviours</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironmentDescription*classes">classes</a></h3>
|
||||
@protected NSMutableDictionary* <b>classes</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironmentDescription*finders">finders</a></h3>
|
||||
@protected NSMutableArray* <b>finders</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironmentDescription*frameworks">frameworks</a></h3>
|
||||
@protected NSMutableArray* <b>frameworks</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironmentDescription*modules">modules</a></h3>
|
||||
@protected NSMutableArray* <b>modules</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironmentDescription*restriction">restriction</a></h3>
|
||||
@protected int <b>restriction</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STEnvironmentDescription*usedDefs">usedDefs</a></h3>
|
||||
@protected NSMutableArray* <b>usedDefs</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STExterns" up="StepTalk">
|
||||
<head>
|
||||
<title>STExterns autogsdoc generated documentation</title>
|
||||
<title>STExterns documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STExterns autogsdoc generated documentation</title>
|
||||
<title>STExterns documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STExterns">STExterns autogsdoc generated documentation</a></h1>
|
||||
<h1><a name="title$STExterns">STExterns documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -153,5 +152,6 @@
|
|||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
95
Documentation/Reference/STFileScript.gsdoc
Normal file
95
Documentation/Reference/STFileScript.gsdoc
Normal file
|
@ -0,0 +1,95 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STFileScript" up="StepTalk">
|
||||
<head>
|
||||
<title>STFileScript class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="stefanurbanek@yahoo.fr">
|
||||
stefanurbanek@yahoo.fr
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Stefan Urbanek</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STFileScript class
|
||||
</heading>
|
||||
<class name="STFileScript" super="STScript">
|
||||
<declared>StepTalk/STFileScript.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSString*" name="description" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="fileName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="localizedName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="menuKey" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="id" factory="yes">
|
||||
<sel>scriptWithFile:</sel>
|
||||
<arg type="NSString*">file</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSComparisonResult">
|
||||
<sel>compareByLocalizedName:</sel>
|
||||
<arg type="STFileScript*">aScript</arg>
|
||||
<desc>
|
||||
Compare scripts by localized name.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>fileName</sel>
|
||||
<desc>
|
||||
Return file name of the receiver.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithFile:</sel>
|
||||
<arg type="NSString*">aFile</arg>
|
||||
<desc>
|
||||
Create a new script from file <var>aFile></var>.
|
||||
Script information will be read from 'aFile.stinfo'
|
||||
file containing a dictionary property list.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>localizedName</sel>
|
||||
<desc>
|
||||
Returns localized name of the receiver script.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>scriptDescription</sel>
|
||||
<desc>
|
||||
Returns localized description of the script.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>scriptName</sel>
|
||||
<desc>
|
||||
Returns a script name by which the script is
|
||||
identified
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
149
Documentation/Reference/STFileScript.html
Normal file
149
Documentation/Reference/STFileScript.html
Normal file
|
@ -0,0 +1,149 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STFileScript class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STFileScript">STFileScript class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek (<a href="mailto:stefanurbanek@yahoo.fr"><code>stefanurbanek@yahoo.fr</code></a>)</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2002 Stefan Urbanek</p>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STFileScript class
|
||||
</a></h1>
|
||||
<h2><a name="class$STFileScript">STFileScript</a> : <a rel="gsdoc" href="STScript.html#class$STScript">STScript</a></h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STFileScript.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STFileScript_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript+scriptWithFile:">+scriptWithFile:</a></li>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-compareByLocalizedName:">-compareByLocalizedName:</a></li>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-fileName">-fileName</a></li>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-initWithFile:">-initWithFile:</a></li>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-localizedName">-localizedName</a></li>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-scriptDescription">-scriptDescription</a></li>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#method$STFileScript-scriptName">-scriptName</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STFileScript+scriptWithFile:">scriptWithFile: </a></h3>
|
||||
+ (id) <b>scriptWithFile:</b> (NSString*)file;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STFileScript-compareByLocalizedName:">compareByLocalizedName: </a></h3>
|
||||
- (NSComparisonResult) <b>compareByLocalizedName:</b> (<a rel="gsdoc" href="#class$STFileScript">STFileScript</a>*)aScript;<br />
|
||||
<p>
|
||||
|
||||
Compare scripts by localized name.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STFileScript-fileName">fileName </a></h3>
|
||||
- (NSString*) <b>fileName</b>;<br />
|
||||
<p>
|
||||
|
||||
Return file name of the receiver.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STFileScript-initWithFile:">initWithFile: </a></h3>
|
||||
- (id) <b>initWithFile:</b> (NSString*)aFile;<br />
|
||||
<p>
|
||||
|
||||
Create a new script from file <var>aFile></var>.
|
||||
Script information will be read from 'aFile.stinfo'
|
||||
file containing a dictionary property list.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STFileScript-localizedName">localizedName </a></h3>
|
||||
- (NSString*) <b>localizedName</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns localized name of the receiver script.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STFileScript-scriptDescription">scriptDescription </a></h3>
|
||||
- (NSString*) <b>scriptDescription</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns localized description of the script.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STFileScript-scriptName">scriptName </a></h3>
|
||||
- (NSString*) <b>scriptName</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns a script name by which the script is
|
||||
identified
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STFileScript_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STFileScript Class</h2>
|
||||
<h3><a name="ivariable$STFileScript*description">description</a></h3>
|
||||
@protected NSString* <b>description</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STFileScript*fileName">fileName</a></h3>
|
||||
@protected NSString* <b>fileName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STFileScript*localizedName">localizedName</a></h3>
|
||||
@protected NSString* <b>localizedName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STFileScript*menuKey">menuKey</a></h3>
|
||||
@protected NSString* <b>menuKey</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STFunctions" up="StepTalk">
|
||||
<head>
|
||||
<title>STFunctions autogsdoc generated documentation</title>
|
||||
<title>STFunctions documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STFunctions autogsdoc generated documentation</title>
|
||||
<title>STFunctions documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STFunctions">STFunctions autogsdoc generated documentation</a></h1>
|
||||
<h1><a name="title$STFunctions">STFunctions documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -49,5 +48,6 @@
|
|||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,95 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<gsdoc base="STLanguage" up="StepTalk">
|
||||
<head>
|
||||
<title>STLanguage class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STLanguage class
|
||||
</heading>
|
||||
<class name="STLanguage" super="NSBundle">
|
||||
<declared>StepTalk/STLanguage.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<method type="NSArray*" factory="yes">
|
||||
<sel>allKnownFileTypes</sel>
|
||||
<desc>
|
||||
Return all known types (extensions) of StepTalk
|
||||
script files
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*" factory="yes">
|
||||
<sel>allLanguageNames</sel>
|
||||
<desc>
|
||||
Returns an array containing the names of all
|
||||
available languages
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*" factory="yes">
|
||||
<sel>defaultLanguageName</sel>
|
||||
<desc>
|
||||
Returns the name of default scripting language
|
||||
specified by the STDefaultLanguageName default.
|
||||
If there is no such default in user's defaults database,
|
||||
then Smalltalk is used.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STLanguage*" factory="yes">
|
||||
<sel>languageForFileType:</sel>
|
||||
<arg type="NSString*">fileType</arg>
|
||||
<desc>
|
||||
Returns the language bundle for a language used by
|
||||
files of type <var>fileType</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*" factory="yes">
|
||||
<sel>languageNameForFileType:</sel>
|
||||
<arg type="NSString*">fileType</arg>
|
||||
<desc>
|
||||
Returns name of a language used by files of type
|
||||
<var>fileType</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" factory="yes">
|
||||
<sel>languageWithName:</sel>
|
||||
<arg type="NSString*">languageName</arg>
|
||||
<desc>
|
||||
Returns language bundle for a language with name
|
||||
<var>languageName</var>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id" factory="yes">
|
||||
<sel>languageWithPath:</sel>
|
||||
<arg type="NSString*">path</arg>
|
||||
<desc>
|
||||
Returns language bundle for language with name
|
||||
<var>languageName</var>.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STEngine*">
|
||||
<sel>engine</sel>
|
||||
<desc>
|
||||
Returns a scripting engine provided by the
|
||||
language.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>languageName</sel>
|
||||
<desc>
|
||||
Returns the name of the language
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
|
@ -1,136 +0,0 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STLanguage class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STLanguage">STLanguage class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STLanguage class
|
||||
</a></h1>
|
||||
<h2><a name="class$STLanguage">STLanguage</a> : NSBundle</h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STLanguage.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+allKnownFileTypes">+allKnownFileTypes</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+allLanguageNames">+allLanguageNames</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+defaultLanguageName">+defaultLanguageName</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageForFileType:">+languageForFileType:</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageNameForFileType:">+languageNameForFileType:</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageWithName:">+languageWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage+languageWithPath:">+languageWithPath:</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage-engine">-engine</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#method$STLanguage-languageName">-languageName</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STLanguage+allKnownFileTypes">allKnownFileTypes</a></h3>
|
||||
+ (NSArray*) <b>allKnownFileTypes</b>;<br />
|
||||
<p>
|
||||
|
||||
Return all known types (extensions) of StepTalk
|
||||
script files
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage+allLanguageNames">allLanguageNames</a></h3>
|
||||
+ (NSArray*) <b>allLanguageNames</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns an array containing the names of all
|
||||
available languages
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage+defaultLanguageName">defaultLanguageName</a></h3>
|
||||
+ (NSString*) <b>defaultLanguageName</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns the name of default scripting language
|
||||
specified by the STDefaultLanguageName default.
|
||||
If there is no such default in user's defaults database,
|
||||
then Smalltalk is used.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage+languageForFileType:">languageForFileType:</a></h3>
|
||||
+ (<a rel="gsdoc" href="#class$STLanguage">STLanguage</a>*) <b>languageForFileType:</b> (NSString*)fileType;<br />
|
||||
<p>
|
||||
|
||||
Returns the language bundle for a language used by
|
||||
files of type <var>fileType</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage+languageNameForFileType:">languageNameForFileType:</a></h3>
|
||||
+ (NSString*) <b>languageNameForFileType:</b> (NSString*)fileType;<br />
|
||||
<p>
|
||||
|
||||
Returns name of a language used by files of type
|
||||
<var>fileType</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage+languageWithName:">languageWithName:</a></h3>
|
||||
+ (id) <b>languageWithName:</b> (NSString*)languageName;<br />
|
||||
<p>
|
||||
|
||||
Returns language bundle for a language with name
|
||||
<var>languageName</var>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage+languageWithPath:">languageWithPath:</a></h3>
|
||||
+ (id) <b>languageWithPath:</b> (NSString*)path;<br />
|
||||
<p>
|
||||
|
||||
Returns language bundle for language with name
|
||||
<var>languageName</var>.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage-engine">engine</a></h3>
|
||||
- (<a rel="gsdoc" href="STEngine.html#class$STEngine">STEngine</a>*) <b>engine</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns a scripting engine provided by the
|
||||
language.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguage-languageName">languageName</a></h3>
|
||||
- (NSString*) <b>languageName</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns the name of the language
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</html>
|
148
Documentation/Reference/STLanguageManager.gsdoc
Normal file
148
Documentation/Reference/STLanguageManager.gsdoc
Normal file
|
@ -0,0 +1,148 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STLanguageManager" up="StepTalk">
|
||||
<head>
|
||||
<title>STLanguageManager class documentation</title>
|
||||
<author name="Generated by stevko"></author>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STLanguageManager class
|
||||
</heading>
|
||||
<class name="STLanguageManager" super="NSObject">
|
||||
<declared>StepTalk/STLanguageManager.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSMutableDictionary*" name="engineClasses" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="fileTypes" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="languageBundles" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="languageInfos" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableArray*" name="languages" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="STLanguageManager*" factory="yes">
|
||||
<sel>defaultManager</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>availableLanguages</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSBundle*">
|
||||
<sel>bundleForLanguage:</sel>
|
||||
<arg type="NSString*">language</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STEngine*">
|
||||
<sel>createEngineForLanguage:</sel>
|
||||
<arg type="NSString*">language</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>defaultLanguage</sel>
|
||||
<desc>
|
||||
Returns the name of default scripting language
|
||||
specified by the STDefaultLanguage default. If
|
||||
there is no such default in user's defaults database,
|
||||
then Smalltalk is used.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="Class">
|
||||
<sel>engineClassForLanguage:</sel>
|
||||
<arg type="NSString*">language</arg>
|
||||
<desc>
|
||||
Return an engine class for specified
|
||||
<var>language</var>. The class lookup is as follows:
|
||||
<ul>
|
||||
<li>
|
||||
internal class dictionary by
|
||||
<var>language</var> name
|
||||
<li>
|
||||
all loaded classes by class name in the
|
||||
<var>language</var> info dictionary
|
||||
<li>
|
||||
in the <var>language</var> bundle
|
||||
<li>
|
||||
in the <var>language</var> bundle as
|
||||
<i>language_nameEngine</i>
|
||||
</ul>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSDictionary*">
|
||||
<sel>infoForLanguage:</sel>
|
||||
<arg type="NSString*">language</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>knownFileTypes</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>languageForFileType:</sel>
|
||||
<arg type="NSString*">type</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>registerLanguage:</sel>
|
||||
<arg type="NSString*">language</arg>
|
||||
<sel>engineClass:</sel>
|
||||
<arg type="Class">class</arg>
|
||||
<sel>info:</sel>
|
||||
<arg type="NSDictionary*">info</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>registerLanguagesFromBundle:</sel>
|
||||
<arg type="NSBundle*">bundle</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>removeLanguage:</sel>
|
||||
<arg type="NSString*">language</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
148
Documentation/Reference/STLanguageManager.html
Normal file
148
Documentation/Reference/STLanguageManager.html
Normal file
|
@ -0,0 +1,148 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STLanguageManager class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STLanguageManager">STLanguageManager class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Generated by stevko</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STLanguageManager class
|
||||
</a></h1>
|
||||
<h2><a name="class$STLanguageManager">STLanguageManager</a> : NSObject</h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STLanguageManager.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STLanguageManager_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager+defaultManager">+defaultManager</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-availableLanguages">-availableLanguages</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-bundleForLanguage:">-bundleForLanguage:</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-createEngineForLanguage:">-createEngineForLanguage:</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-defaultLanguage">-defaultLanguage</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguageManager.html#method$STLanguageManager-engineClassForLanguage:">-engineClassForLanguage:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STLanguageManager+defaultManager">defaultManager </a></h3>
|
||||
+ (<a rel="gsdoc" href="#class$STLanguageManager">STLanguageManager</a>*) <b>defaultManager</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguageManager-availableLanguages">availableLanguages </a></h3>
|
||||
- (NSArray*) <b>availableLanguages</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguageManager-bundleForLanguage:">bundleForLanguage: </a></h3>
|
||||
- (NSBundle*) <b>bundleForLanguage:</b> (NSString*)language;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguageManager-createEngineForLanguage:">createEngineForLanguage: </a></h3>
|
||||
- (<a rel="gsdoc" href="STEngine.html#class$STEngine">STEngine</a>*) <b>createEngineForLanguage:</b> (NSString*)language;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguageManager-defaultLanguage">defaultLanguage </a></h3>
|
||||
- (NSString*) <b>defaultLanguage</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns the name of default scripting language
|
||||
specified by the STDefaultLanguage default. If
|
||||
there is no such default in user's defaults database,
|
||||
then Smalltalk is used.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STLanguageManager-engineClassForLanguage:">engineClassForLanguage: </a></h3>
|
||||
- (Class) <b>engineClassForLanguage:</b> (NSString*)language;<br />
|
||||
<p>
|
||||
|
||||
Return an engine class for specified
|
||||
<var>language</var>. The class lookup is as follows:
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STLanguageManager_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STLanguageManager Class</h2>
|
||||
<h3><a name="ivariable$STLanguageManager*engineClasses">engineClasses</a></h3>
|
||||
@protected NSMutableDictionary* <b>engineClasses</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STLanguageManager*fileTypes">fileTypes</a></h3>
|
||||
@protected NSMutableDictionary* <b>fileTypes</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STLanguageManager*languageBundles">languageBundles</a></h3>
|
||||
@protected NSMutableDictionary* <b>languageBundles</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STLanguageManager*languageInfos">languageInfos</a></h3>
|
||||
@protected NSMutableDictionary* <b>languageInfos</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STLanguageManager*languages">languages</a></h3>
|
||||
@protected NSMutableArray* <b>languages</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
42
Documentation/Reference/STMethod.gsdoc
Normal file
42
Documentation/Reference/STMethod.gsdoc
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STMethod" up="StepTalk">
|
||||
<head>
|
||||
<title>STMethod documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
</author>
|
||||
<copy>2003 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STMethod protocol
|
||||
</heading>
|
||||
<protocol name="STMethod">
|
||||
<declared>StepTalk/STMethod.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<method type="NSString*">
|
||||
<sel>languageName</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>methodName</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>source</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</protocol>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
72
Documentation/Reference/STMethod.html
Normal file
72
Documentation/Reference/STMethod.html
Normal file
|
@ -0,0 +1,72 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STMethod documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STMethod">STMethod documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2003 Free Software Foundation</p>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STMethod protocol
|
||||
</a></h1>
|
||||
<h2><a name="protocol$(STMethod)">STMethod</a></h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STMethod.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STMethod.html#method$(STMethod)-languageName">-languageName</a></li>
|
||||
<li><a rel="gsdoc" href="STMethod.html#method$(STMethod)-methodName">-methodName</a></li>
|
||||
<li><a rel="gsdoc" href="STMethod.html#method$(STMethod)-source">-source</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$(STMethod)-languageName">languageName </a></h3>
|
||||
- (NSString*) <b>languageName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STMethod)-methodName">methodName </a></h3>
|
||||
- (NSString*) <b>methodName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STMethod)-source">source </a></h3>
|
||||
- (NSString*) <b>source</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STObjCRuntime" up="StepTalk">
|
||||
<head>
|
||||
<title>STObjCRuntime autogsdoc generated documentation</title>
|
||||
<title>STObjCRuntime documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
@ -31,6 +28,12 @@
|
|||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</function>
|
||||
<function type="NSMethodSignature*" name="STConstructMethodSignatureForSelector">
|
||||
<arg type="SEL">sel</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</function>
|
||||
<function type="NSMutableDictionary*" name="STGetFoundationConstants">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STObjCRuntime autogsdoc generated documentation</title>
|
||||
<title>STObjCRuntime documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STObjCRuntime">STObjCRuntime autogsdoc generated documentation</a></h1>
|
||||
<h1><a name="title$STObjCRuntime">STObjCRuntime documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -45,6 +44,14 @@
|
|||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="function$STConstructMethodSignatureForSelector">STConstructMethodSignatureForSelector</a></h3>
|
||||
NSMethodSignature* STConstructMethodSignatureForSelector(SEL <b>sel</b>);<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="function$STGetFoundationConstants">STGetFoundationConstants</a></h3>
|
||||
|
@ -89,5 +96,6 @@
|
|||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STObjectReference" up="StepTalk">
|
||||
<head>
|
||||
<title>STObjectReference class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
@ -21,11 +18,27 @@
|
|||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSString*" name="identifier" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="id" name="target" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="NSString*">
|
||||
<sel>identifier</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithObjectName:</sel>
|
||||
<arg type="NSString*">name</arg>
|
||||
<sel>pool:</sel>
|
||||
<arg type="NSMutableDictionary*">aPool</arg>
|
||||
<sel>initWithIdentifier:</sel>
|
||||
<arg type="NSString*">ident</arg>
|
||||
<sel>target:</sel>
|
||||
<arg type="id">anObject</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
|
@ -36,18 +49,6 @@
|
|||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>objectName</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSMutableDictionary*">
|
||||
<sel>pool</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setObject:</sel>
|
||||
<arg type="id">anObject</arg>
|
||||
|
@ -55,16 +56,8 @@
|
|||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setObjectName:</sel>
|
||||
<arg type="NSString*">newName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setPool:</sel>
|
||||
<arg type="NSMutableDictionary*">aDict</arg>
|
||||
<method type="id">
|
||||
<sel>target</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STObjectReference class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STObjectReference">STObjectReference class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -35,26 +34,35 @@
|
|||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STObjectReference_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-initWithObjectName:pool:">-initWithObjectName:pool:</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-identifier">-identifier</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-initWithIdentifier:target:">-initWithIdentifier:target:</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-object">-object</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-objectName">-objectName</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-pool">-pool</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-setObject:">-setObject:</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-setObjectName:">-setObjectName:</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-setPool:">-setPool:</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#method$STObjectReference-target">-target</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STObjectReference-initWithObjectName:pool:">initWithObjectName:pool:</a></h3>
|
||||
- (id) <b>initWithObjectName:</b> (NSString*)name<b> pool:</b> (NSMutableDictionary*)aPool;<br />
|
||||
<h3><a name="method$STObjectReference-identifier">identifier </a></h3>
|
||||
- (NSString*) <b>identifier</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STObjectReference-object">object</a></h3>
|
||||
<h3><a name="method$STObjectReference-initWithIdentifier:target:">initWithIdentifier: target: </a></h3>
|
||||
- (id) <b>initWithIdentifier:</b> (NSString*)ident<b> target:</b> (id)anObject;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STObjectReference-object">object </a></h3>
|
||||
- (id) <b>object</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -62,23 +70,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STObjectReference-objectName">objectName</a></h3>
|
||||
- (NSString*) <b>objectName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STObjectReference-pool">pool</a></h3>
|
||||
- (NSMutableDictionary*) <b>pool</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STObjectReference-setObject:">setObject:</a></h3>
|
||||
<h3><a name="method$STObjectReference-setObject:">setObject: </a></h3>
|
||||
- (void) <b>setObject:</b> (id)anObject;<br />
|
||||
<p>
|
||||
|
||||
|
@ -86,23 +78,35 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STObjectReference-setObjectName:">setObjectName:</a></h3>
|
||||
- (void) <b>setObjectName:</b> (NSString*)newName;<br />
|
||||
<h3><a name="method$STObjectReference-target">target </a></h3>
|
||||
- (id) <b>target</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STObjectReference-setPool:">setPool:</a></h3>
|
||||
- (void) <b>setPool:</b> (NSMutableDictionary*)aDict;<br />
|
||||
<a name="_STObjectReference_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STObjectReference Class</h2>
|
||||
<h3><a name="ivariable$STObjectReference*identifier">identifier</a></h3>
|
||||
@protected NSString* <b>identifier</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STObjectReference*target">target</a></h3>
|
||||
@protected id <b>target</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
91
Documentation/Reference/STRemoteConversation.gsdoc
Normal file
91
Documentation/Reference/STRemoteConversation.gsdoc
Normal file
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STRemoteConversation" up="StepTalk">
|
||||
<head>
|
||||
<title>STRemoteConversation class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STRemoteConversation
|
||||
class
|
||||
</heading>
|
||||
<class name="STRemoteConversation" super="STConversation">
|
||||
<declared>StepTalk/STRemoteConversation.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSConnection*" name="connection" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="environmentName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSDistantObject<STEnvironmentProcess>*" name="environmentProcess" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="hostName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSDistantObject<STConversation>*" name="proxy" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="void">
|
||||
<sel>close</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithEnvironmentName:</sel>
|
||||
<arg type="NSString*">envName</arg>
|
||||
<sel>host:</sel>
|
||||
<arg type="NSString*">host</arg>
|
||||
<sel>language:</sel>
|
||||
<arg type="NSString*">langName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>open</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STEnvironmentProcess
|
||||
protocol
|
||||
</heading>
|
||||
<protocol name="STEnvironmentProcess">
|
||||
<declared>StepTalk/STRemoteConversation.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<method type="STConversation*">
|
||||
<sel>createConversation</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</protocol>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
162
Documentation/Reference/STRemoteConversation.html
Normal file
162
Documentation/Reference/STRemoteConversation.html
Normal file
|
@ -0,0 +1,162 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STRemoteConversation class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STRemoteConversation">STRemoteConversation class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Copyright:</b> (C) 2002 Free Software Foundation</p>
|
||||
|
||||
<div>
|
||||
<hr width="50%" align="left" />
|
||||
<h3>Contents -</h3>
|
||||
<ol>
|
||||
<li>
|
||||
<a href="#001000000000">Software documentation for the STRemoteConversation
|
||||
class</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#002000000000">Software documentation for the STEnvironmentProcess
|
||||
protocol</a>
|
||||
</li>
|
||||
</ol>
|
||||
<hr width="50%" align="left" />
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STRemoteConversation
|
||||
class
|
||||
</a></h1>
|
||||
<h2><a name="class$STRemoteConversation">STRemoteConversation</a> : <a rel="gsdoc" href="STConversation.html#class$STConversation">STConversation</a></h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STRemoteConversation.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STRemoteConversation_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STRemoteConversation.html#method$STRemoteConversation-close">-close</a></li>
|
||||
<li><a rel="gsdoc" href="STRemoteConversation.html#method$STRemoteConversation-initWithEnvironmentName:host:language:">-initWithEnvironmentName:host:language:</a></li>
|
||||
<li><a rel="gsdoc" href="STRemoteConversation.html#method$STRemoteConversation-open">-open</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STRemoteConversation-close">close </a></h3>
|
||||
- (void) <b>close</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STRemoteConversation-initWithEnvironmentName:host:language:">initWithEnvironmentName: host: language: </a></h3>
|
||||
- (id) <b>initWithEnvironmentName:</b> (NSString*)envName<b> host:</b> (NSString*)host<b> language:</b> (NSString*)langName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STRemoteConversation-open">open </a></h3>
|
||||
- (void) <b>open</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STRemoteConversation_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STRemoteConversation Class</h2>
|
||||
<h3><a name="ivariable$STRemoteConversation*connection">connection</a></h3>
|
||||
@protected NSConnection* <b>connection</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STRemoteConversation*environmentName">environmentName</a></h3>
|
||||
@protected NSString* <b>environmentName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STRemoteConversation*environmentProcess">environmentProcess</a></h3>
|
||||
@protected NSDistantObject<STEnvironmentProcess>* <b>environmentProcess</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STRemoteConversation*hostName">hostName</a></h3>
|
||||
@protected NSString* <b>hostName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STRemoteConversation*proxy">proxy</a></h3>
|
||||
@protected NSDistantObject<STConversation>* <b>proxy</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
|
||||
<h1><a name="002000000000">
|
||||
Software documentation for the STEnvironmentProcess
|
||||
protocol
|
||||
</a></h1>
|
||||
<h2><a name="protocol$(STEnvironmentProcess)">STEnvironmentProcess</a></h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STRemoteConversation.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STRemoteConversation.html#method$(STEnvironmentProcess)-createConversation">-createConversation</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$(STEnvironmentProcess)-createConversation">createConversation </a></h3>
|
||||
- (<a rel="gsdoc" href="STConversation.html#class$STConversation">STConversation</a>*) <b>createConversation</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STScript" up="StepTalk">
|
||||
<head>
|
||||
<title>STScript class documentation</title>
|
||||
|
@ -21,33 +21,32 @@
|
|||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSString*" name="language" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="source" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="id" factory="yes">
|
||||
<sel>scriptWithFile:</sel>
|
||||
<arg type="NSString*">file</arg>
|
||||
<sel>scriptWithSource:</sel>
|
||||
<arg type="NSString*">aString</arg>
|
||||
<sel>language:</sel>
|
||||
<arg type="NSString*">lang</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSComparisonResult">
|
||||
<sel>compareByLocalizedName:</sel>
|
||||
<arg type="STScript*">aScript</arg>
|
||||
<desc>
|
||||
Compare scripts by localized name.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>fileName</sel>
|
||||
<desc>
|
||||
Return file name of the receiver.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithFile:</sel>
|
||||
<arg type="NSString*">aFile</arg>
|
||||
<sel>initWithSource:</sel>
|
||||
<arg type="NSString*">aString</arg>
|
||||
<sel>language:</sel>
|
||||
<arg type="NSString*">lang</arg>
|
||||
<desc>
|
||||
Create a new script from file <var>aFile></var>.
|
||||
Script information will be read from 'aFile.stinfo'
|
||||
file containing a dictionary property list.
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
|
@ -56,29 +55,24 @@
|
|||
Returns language of the script.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>localizedName</sel>
|
||||
<method type="void">
|
||||
<sel>setLanguage:</sel>
|
||||
<arg type="NSString*">name</arg>
|
||||
<desc>
|
||||
Returns localized name of the receiver script.
|
||||
Set language of the script.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>scriptDescription</sel>
|
||||
<method type="void">
|
||||
<sel>setSource:</sel>
|
||||
<arg type="NSString*">aString</arg>
|
||||
<desc>
|
||||
Returns localized description of the script.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>scriptName</sel>
|
||||
<desc>
|
||||
Returns a script name by which the script is
|
||||
identified
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>source</sel>
|
||||
<desc>
|
||||
Returns source string of the receiver script.
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STScript class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STScript">STScript class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:stefanurbanek@yahoo.fr"><code>
|
||||
stefanurbanek@yahoo.fr
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek (<a href="mailto:stefanurbanek@yahoo.fr"><code>stefanurbanek@yahoo.fr</code></a>)</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -35,54 +34,36 @@
|
|||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STScript_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript+scriptWithFile:">+scriptWithFile:</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-compareByLocalizedName:">-compareByLocalizedName:</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-fileName">-fileName</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-initWithFile:">-initWithFile:</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript+scriptWithSource:language:">+scriptWithSource:language:</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-initWithSource:language:">-initWithSource:language:</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-language">-language</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-localizedName">-localizedName</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-scriptDescription">-scriptDescription</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-scriptName">-scriptName</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-setLanguage:">-setLanguage:</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-setSource:">-setSource:</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#method$STScript-source">-source</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STScript+scriptWithFile:">scriptWithFile:</a></h3>
|
||||
+ (id) <b>scriptWithFile:</b> (NSString*)file;<br />
|
||||
<h3><a name="method$STScript+scriptWithSource:language:">scriptWithSource: language: </a></h3>
|
||||
+ (id) <b>scriptWithSource:</b> (NSString*)aString<b> language:</b> (NSString*)lang;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-compareByLocalizedName:">compareByLocalizedName:</a></h3>
|
||||
- (NSComparisonResult) <b>compareByLocalizedName:</b> (<a rel="gsdoc" href="#class$STScript">STScript</a>*)aScript;<br />
|
||||
<h3><a name="method$STScript-initWithSource:language:">initWithSource: language: </a></h3>
|
||||
- (id) <b>initWithSource:</b> (NSString*)aString<b> language:</b> (NSString*)lang;<br />
|
||||
<p>
|
||||
|
||||
Compare scripts by localized name.
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-fileName">fileName</a></h3>
|
||||
- (NSString*) <b>fileName</b>;<br />
|
||||
<p>
|
||||
|
||||
Return file name of the receiver.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-initWithFile:">initWithFile:</a></h3>
|
||||
- (id) <b>initWithFile:</b> (NSString*)aFile;<br />
|
||||
<p>
|
||||
|
||||
Create a new script from file <var>aFile></var>.
|
||||
Script information will be read from 'aFile.stinfo'
|
||||
file containing a dictionary property list.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-language">language</a></h3>
|
||||
<h3><a name="method$STScript-language">language </a></h3>
|
||||
- (NSString*) <b>language</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -90,40 +71,51 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-localizedName">localizedName</a></h3>
|
||||
- (NSString*) <b>localizedName</b>;<br />
|
||||
<h3><a name="method$STScript-setLanguage:">setLanguage: </a></h3>
|
||||
- (void) <b>setLanguage:</b> (NSString*)name;<br />
|
||||
<p>
|
||||
|
||||
Returns localized name of the receiver script.
|
||||
Set language of the script.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-scriptDescription">scriptDescription</a></h3>
|
||||
- (NSString*) <b>scriptDescription</b>;<br />
|
||||
<h3><a name="method$STScript-setSource:">setSource: </a></h3>
|
||||
- (void) <b>setSource:</b> (NSString*)aString;<br />
|
||||
<p>
|
||||
|
||||
Returns localized description of the script.
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-scriptName">scriptName</a></h3>
|
||||
- (NSString*) <b>scriptName</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns a script name by which the script is
|
||||
identified
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScript-source">source</a></h3>
|
||||
<h3><a name="method$STScript-source">source </a></h3>
|
||||
- (NSString*) <b>source</b>;<br />
|
||||
<p>
|
||||
|
||||
Returns source string of the receiver script.
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STScript_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STScript Class</h2>
|
||||
<h3><a name="ivariable$STScript*language">language</a></h3>
|
||||
@protected NSString* <b>language</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STScript*source">source</a></h3>
|
||||
@protected NSString* <b>source</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
146
Documentation/Reference/STScriptObject.gsdoc
Normal file
146
Documentation/Reference/STScriptObject.gsdoc
Normal file
|
@ -0,0 +1,146 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STScriptObject" up="StepTalk">
|
||||
<head>
|
||||
<title>STScriptObject class documentation</title>
|
||||
<author name="Generated by stevko"></author>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STScriptObject class
|
||||
</heading>
|
||||
<class name="STScriptObject" super="NSObject">
|
||||
<declared>StepTalk/STScriptObject.h</declared>
|
||||
<conform>NSCoding</conform>
|
||||
<conform>STScriptObject</conform>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="STEnvironment*" name="environment" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="ivars" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSMutableDictionary*" name="methodDictionary" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="id" factory="yes">
|
||||
<sel>scriptObject</sel>
|
||||
<desc>
|
||||
Return new instance of script object without any
|
||||
instance variables
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>addMethod:</sel>
|
||||
<arg type="id<STMethod>">aMethod</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STEnvironment*">
|
||||
<sel>environment</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithInstanceVariableNames:</sel>
|
||||
<arg type="NSString*">names</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>instanceVariableNames</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSDictionary*">
|
||||
<sel>methodDictionary</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSArray*">
|
||||
<sel>methodNames</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id<STMethod>">
|
||||
<sel>methodWithName:</sel>
|
||||
<arg type="NSString*">aName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>objectForVariable:</sel>
|
||||
<arg type="NSString*">aName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>removeMethod:</sel>
|
||||
<arg type="id<STMethod>">aMethod</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>removeMethodWithName:</sel>
|
||||
<arg type="NSString*">aName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setEnvironment:</sel>
|
||||
<arg type="STEnvironment*">env</arg>
|
||||
<desc>
|
||||
Set object's environment. Note: This method should be
|
||||
replaced by some other, more clever mechanism.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
<sel>setObject:</sel>
|
||||
<arg type="id">anObject</arg>
|
||||
<sel>forVariable:</sel>
|
||||
<arg type="NSString*">aName</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
<chapter>
|
||||
<heading>
|
||||
Software documentation for the STScriptObject protocol
|
||||
</heading>
|
||||
<protocol name="STScriptObject">
|
||||
<declared>StepTalk/STScriptObject.h</declared>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<method type="NSArray*">
|
||||
<sel>instanceVariableNames</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</protocol>
|
||||
</chapter>
|
||||
</body>
|
||||
</gsdoc>
|
240
Documentation/Reference/STScriptObject.html
Normal file
240
Documentation/Reference/STScriptObject.html
Normal file
|
@ -0,0 +1,240 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>STScriptObject class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STScriptObject">STScriptObject class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Generated by stevko</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<div>
|
||||
<hr width="50%" align="left" />
|
||||
<h3>Contents -</h3>
|
||||
<ol>
|
||||
<li>
|
||||
<a href="#001000000000">Software documentation for the STScriptObject class</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#002000000000">Software documentation for the STScriptObject protocol</a>
|
||||
</li>
|
||||
</ol>
|
||||
<hr width="50%" align="left" />
|
||||
</div>
|
||||
|
||||
<h1><a name="001000000000">
|
||||
Software documentation for the STScriptObject class
|
||||
</a></h1>
|
||||
<h2><a name="class$STScriptObject">STScriptObject</a> : NSObject</h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STScriptObject.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Conforms to:</b></dt>
|
||||
<dd>NSCoding</dd>
|
||||
<dd><a rel="gsdoc" href="#protocol$(STScriptObject)">STScriptObject</a></dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STScriptObject_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject+scriptObject">+scriptObject</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-addMethod:">-addMethod:</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-environment">-environment</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-initWithInstanceVariableNames:">-initWithInstanceVariableNames:</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-instanceVariableNames">-instanceVariableNames</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-methodDictionary">-methodDictionary</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-methodNames">-methodNames</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-methodWithName:">-methodWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-objectForVariable:">-objectForVariable:</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-removeMethod:">-removeMethod:</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-removeMethodWithName:">-removeMethodWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-setEnvironment:">-setEnvironment:</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$STScriptObject-setObject:forVariable:">-setObject:forVariable:</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STScriptObject+scriptObject">scriptObject </a></h3>
|
||||
+ (id) <b>scriptObject</b>;<br />
|
||||
<p>
|
||||
|
||||
Return new instance of script object without any
|
||||
instance variables
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-addMethod:">addMethod: </a></h3>
|
||||
- (void) <b>addMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-environment">environment </a></h3>
|
||||
- (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*) <b>environment</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-initWithInstanceVariableNames:">initWithInstanceVariableNames: </a></h3>
|
||||
- (id) <b>initWithInstanceVariableNames:</b> (NSString*)names;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-instanceVariableNames">instanceVariableNames </a></h3>
|
||||
- (NSArray*) <b>instanceVariableNames</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-methodDictionary">methodDictionary </a></h3>
|
||||
- (NSDictionary*) <b>methodDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-methodNames">methodNames </a></h3>
|
||||
- (NSArray*) <b>methodNames</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-methodWithName:">methodWithName: </a></h3>
|
||||
- (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>) <b>methodWithName:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-objectForVariable:">objectForVariable: </a></h3>
|
||||
- (id) <b>objectForVariable:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-removeMethod:">removeMethod: </a></h3>
|
||||
- (void) <b>removeMethod:</b> (id<<a rel="gsdoc" href="STMethod.html#protocol$(STMethod)">STMethod</a>>)aMethod;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-removeMethodWithName:">removeMethodWithName: </a></h3>
|
||||
- (void) <b>removeMethodWithName:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-setEnvironment:">setEnvironment: </a></h3>
|
||||
- (void) <b>setEnvironment:</b> (<a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a>*)env;<br />
|
||||
<p>
|
||||
|
||||
Set object's environment. Note: This method should be
|
||||
replaced by some other, more clever mechanism.
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptObject-setObject:forVariable:">setObject: forVariable: </a></h3>
|
||||
- (void) <b>setObject:</b> (id)anObject<b> forVariable:</b> (NSString*)aName;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STScriptObject_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STScriptObject Class</h2>
|
||||
<h3><a name="ivariable$STScriptObject*environment">environment</a></h3>
|
||||
@protected STEnvironment* <b>environment</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STScriptObject*ivars">ivars</a></h3>
|
||||
@protected NSMutableDictionary* <b>ivars</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STScriptObject*methodDictionary">methodDictionary</a></h3>
|
||||
@protected NSMutableDictionary* <b>methodDictionary</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
|
||||
<h1><a name="002000000000">
|
||||
Software documentation for the STScriptObject protocol
|
||||
</a></h1>
|
||||
<h2><a name="protocol$(STScriptObject)">STScriptObject</a></h2>
|
||||
<blockquote>
|
||||
<dl>
|
||||
<dt><b>Declared in:</b></dt>
|
||||
<dd>StepTalk/STScriptObject.h</dd>
|
||||
</dl>
|
||||
</blockquote>
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#method$(STScriptObject)-instanceVariableNames">-instanceVariableNames</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$(STScriptObject)-instanceVariableNames">instanceVariableNames </a></h3>
|
||||
- (NSArray*) <b>instanceVariableNames</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STScripting" up="StepTalk">
|
||||
<head>
|
||||
<title>STScripting protocol documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STScripting protocol documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STScripting">STScripting protocol documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -80,7 +79,7 @@
|
|||
<li><a rel="gsdoc" href="STScripting.html#method$(STScripting)-isClass">-isClass</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$(STScripting)+classForScripting">classForScripting</a></h3>
|
||||
<h3><a name="method$(STScripting)+classForScripting">classForScripting </a></h3>
|
||||
+ (Class) <b>classForScripting</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -88,7 +87,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STScripting)+className">className</a></h3>
|
||||
<h3><a name="method$(STScripting)+className">className </a></h3>
|
||||
+ (NSString*) <b>className</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -96,7 +95,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STScripting)+isClass">isClass</a></h3>
|
||||
<h3><a name="method$(STScripting)+isClass">isClass </a></h3>
|
||||
+ (BOOL) <b>isClass</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -104,7 +103,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STScripting)-classForScripting">classForScripting</a></h3>
|
||||
<h3><a name="method$(STScripting)-classForScripting">classForScripting </a></h3>
|
||||
- (Class) <b>classForScripting</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -112,7 +111,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STScripting)-className">className</a></h3>
|
||||
<h3><a name="method$(STScripting)-className">className </a></h3>
|
||||
- (NSString*) <b>className</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -120,7 +119,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$(STScripting)-isClass">isClass</a></h3>
|
||||
<h3><a name="method$(STScripting)-isClass">isClass </a></h3>
|
||||
- (BOOL) <b>isClass</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -130,5 +129,6 @@
|
|||
<hr width="25%" align="left" />
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STScriptsManager" up="StepTalk">
|
||||
<head>
|
||||
<title>STScriptsManager class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Stefan Urbanek</copy>
|
||||
</head>
|
||||
|
@ -21,6 +18,16 @@
|
|||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="NSArray*" name="scriptSearchPaths" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="scriptsDomainName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="id" factory="yes">
|
||||
<sel>defaultManager</sel>
|
||||
<desc>
|
||||
|
@ -55,7 +62,7 @@
|
|||
/Resources/Scripts.
|
||||
</desc>
|
||||
</method>
|
||||
<method type="STScript*">
|
||||
<method type="STFileScript*">
|
||||
<sel>scriptWithName:</sel>
|
||||
<arg type="NSString*">aString</arg>
|
||||
<desc>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STScriptsManager class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STScriptsManager">STScriptsManager class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -35,6 +34,9 @@
|
|||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STScriptsManager_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STScriptsManager.html#method$STScriptsManager+defaultManager">+defaultManager</a></li>
|
||||
|
@ -48,7 +50,7 @@
|
|||
<li><a rel="gsdoc" href="STScriptsManager.html#method$STScriptsManager-validScriptSearchPaths">-validScriptSearchPaths</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STScriptsManager+defaultManager">defaultManager</a></h3>
|
||||
<h3><a name="method$STScriptsManager+defaultManager">defaultManager </a></h3>
|
||||
+ (id) <b>defaultManager</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -57,7 +59,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-allScripts">allScripts</a></h3>
|
||||
<h3><a name="method$STScriptsManager-allScripts">allScripts </a></h3>
|
||||
- (NSArray*) <b>allScripts</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -65,7 +67,7 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-initWithDomainName:">initWithDomainName:</a></h3>
|
||||
<h3><a name="method$STScriptsManager-initWithDomainName:">initWithDomainName: </a></h3>
|
||||
- (id) <b>initWithDomainName:</b> (NSString*)name;<br />
|
||||
This is a designated initialiser for the class.<br />
|
||||
<p>
|
||||
|
@ -77,7 +79,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-scriptSearchPaths">scriptSearchPaths</a></h3>
|
||||
<h3><a name="method$STScriptsManager-scriptSearchPaths">scriptSearchPaths </a></h3>
|
||||
- (NSArray*) <b>scriptSearchPaths</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -90,8 +92,8 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-scriptWithName:">scriptWithName:</a></h3>
|
||||
- (<a rel="gsdoc" href="STScript.html#class$STScript">STScript</a>*) <b>scriptWithName:</b> (NSString*)aString;<br />
|
||||
<h3><a name="method$STScriptsManager-scriptWithName:">scriptWithName: </a></h3>
|
||||
- (<a rel="gsdoc" href="STFileScript.html#class$STFileScript">STFileScript</a>*) <b>scriptWithName:</b> (NSString*)aString;<br />
|
||||
<p>
|
||||
|
||||
Get a script with name <var>aString</var> for current
|
||||
|
@ -99,7 +101,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-scriptsDomainName">scriptsDomainName</a></h3>
|
||||
<h3><a name="method$STScriptsManager-scriptsDomainName">scriptsDomainName </a></h3>
|
||||
- (NSString*) <b>scriptsDomainName</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -107,7 +109,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-setScriptSearchPaths:">setScriptSearchPaths:</a></h3>
|
||||
<h3><a name="method$STScriptsManager-setScriptSearchPaths:">setScriptSearchPaths: </a></h3>
|
||||
- (void) <b>setScriptSearchPaths:</b> (NSArray*)anArray;<br />
|
||||
<p>
|
||||
|
||||
|
@ -115,7 +117,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-setScriptSearchPathsToDefaults">setScriptSearchPathsToDefaults</a></h3>
|
||||
<h3><a name="method$STScriptsManager-setScriptSearchPathsToDefaults">setScriptSearchPathsToDefaults </a></h3>
|
||||
- (void) <b>setScriptSearchPathsToDefaults</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -123,7 +125,7 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STScriptsManager-validScriptSearchPaths">validScriptSearchPaths</a></h3>
|
||||
<h3><a name="method$STScriptsManager-validScriptSearchPaths">validScriptSearchPaths </a></h3>
|
||||
- (NSArray*) <b>validScriptSearchPaths</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -132,7 +134,27 @@ This is a designated initialiser for the class.<br />
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<a name="_STScriptsManager_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STScriptsManager Class</h2>
|
||||
<h3><a name="ivariable$STScriptsManager*scriptSearchPaths">scriptSearchPaths</a></h3>
|
||||
@protected NSArray* <b>scriptSearchPaths</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STScriptsManager*scriptsDomainName">scriptsDomainName</a></h3>
|
||||
@protected NSString* <b>scriptsDomainName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STSelector" up="StepTalk">
|
||||
<head>
|
||||
<title>STSelector class documentation</title>
|
||||
<author name="Generated by me"></author>
|
||||
<author name="Generated by stevko"></author>
|
||||
</head>
|
||||
<body>
|
||||
<front><contents /></front>
|
||||
|
@ -16,6 +16,23 @@
|
|||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
<ivariable type="SEL" name="sel" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<ivariable type="NSString*" name="selectorName" validity="protected">
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</ivariable>
|
||||
<method type="id">
|
||||
<sel>initWithName:</sel>
|
||||
<arg type="NSString*">aString</arg>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="id">
|
||||
<sel>initWithSelector:</sel>
|
||||
<arg type="SEL">aSel</arg>
|
||||
|
@ -23,18 +40,18 @@
|
|||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>selectorName</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="SEL">
|
||||
<sel>selectorValue</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="NSString*">
|
||||
<sel>stringValue</sel>
|
||||
<desc>
|
||||
<em>Description forthcoming.</em>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
</chapter>
|
||||
</body>
|
||||
|
|
|
@ -4,12 +4,13 @@
|
|||
<title>STSelector class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STSelector">STSelector class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Generated by me</dt>
|
||||
<dt>Generated by stevko</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -32,14 +33,26 @@
|
|||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="50%" align="left" />
|
||||
<a href="#_STSelector_ivars">Instance Variables</a>
|
||||
<br/><br/>
|
||||
<b>Method summary</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-initWithName:">-initWithName:</a></li>
|
||||
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-initWithSelector:">-initWithSelector:</a></li>
|
||||
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-selectorName">-selectorName</a></li>
|
||||
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-selectorValue">-selectorValue</a></li>
|
||||
<li><a rel="gsdoc" href="STSelector.html#method$STSelector-stringValue">-stringValue</a></li>
|
||||
</ul>
|
||||
<hr width="50%" align="left" />
|
||||
<h3><a name="method$STSelector-initWithSelector:">initWithSelector:</a></h3>
|
||||
<h3><a name="method$STSelector-initWithName:">initWithName: </a></h3>
|
||||
- (id) <b>initWithName:</b> (NSString*)aString;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STSelector-initWithSelector:">initWithSelector: </a></h3>
|
||||
- (id) <b>initWithSelector:</b> (SEL)aSel;<br />
|
||||
<p>
|
||||
|
||||
|
@ -47,7 +60,15 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STSelector-selectorValue">selectorValue</a></h3>
|
||||
<h3><a name="method$STSelector-selectorName">selectorName </a></h3>
|
||||
- (NSString*) <b>selectorName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STSelector-selectorValue">selectorValue </a></h3>
|
||||
- (SEL) <b>selectorValue</b>;<br />
|
||||
<p>
|
||||
|
||||
|
@ -55,15 +76,27 @@
|
|||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="method$STSelector-stringValue">stringValue</a></h3>
|
||||
- (NSString*) <b>stringValue</b>;<br />
|
||||
<a name="_STSelector_ivars"/> <br/><hr width="50%" align="left" />
|
||||
<h2>Instance Variables for STSelector Class</h2>
|
||||
<h3><a name="ivariable$STSelector*sel">sel</a></h3>
|
||||
@protected SEL <b>sel</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<h3><a name="ivariable$STSelector*selectorName">selectorName</a></h3>
|
||||
@protected NSString* <b>selectorName</b>;<br />
|
||||
<p>
|
||||
|
||||
<em>Description forthcoming.</em>
|
||||
|
||||
</p>
|
||||
<hr width="25%" align="left" />
|
||||
<br/><hr width="50%" align="left" /><br/>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.0//EN" "http://www.gnustep.org/gsdoc-1_0_0.xml">
|
||||
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.2//EN" "http://www.gnustep.org/gsdoc-1_0_2.xml">
|
||||
<gsdoc base="STUndefinedObject" up="StepTalk">
|
||||
<head>
|
||||
<title>STUndefinedObject class documentation</title>
|
||||
<author name="Stefan Urbanek">
|
||||
<email address="urbanek@host.sk">
|
||||
urbanek@host.sk
|
||||
</email>
|
||||
</author>
|
||||
<copy>2002 Free Software Foundation</copy>
|
||||
</head>
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
<title>STUndefinedObject class documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<font face="serif">
|
||||
<a href="StepTalk.html">Up</a>
|
||||
<br />
|
||||
<h1><a name="title$STUndefinedObject">STUndefinedObject class documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt>Stefan Urbanek(<a href="mailto:urbanek@host.sk"><code>
|
||||
urbanek@host.sk
|
||||
</code></a>)</dt>
|
||||
<dt>Stefan Urbanek</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -37,5 +36,6 @@
|
|||
</p>
|
||||
<br />
|
||||
<a href="StepTalk.html">Up</a>
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
<title>StepTalk Documentation</title>
|
||||
</head>
|
||||
<body>
|
||||
<br />
|
||||
<font face="serif">
|
||||
<h1><a name="title$StepTalk">StepTalk Documentation</a></h1>
|
||||
<h3>Authors</h3>
|
||||
<dl>
|
||||
<dt><a href="http://urbanek.host.sk">Stefan Urbanek</a>(<a href="mailto:urbanek@host.sk"><code></code></a>)</dt>
|
||||
<dt><a href="http://stefan.agentfarms.net">Stefan Urbanek</a> (<a href="mailto:stefan@agentfarms.net"><code>stefan@agentfarms.net</code></a>)</dt>
|
||||
<dd>
|
||||
</dd>
|
||||
</dl>
|
||||
<p><b>Version:</b> 0.7.1</p>
|
||||
<p><b>Date:</b> 2003 Apr 22</p>
|
||||
<p><b>Version:</b> 0.10.0</p>
|
||||
<p><b>Date:</b> 2005 Sep 5</p>
|
||||
|
||||
|
||||
|
||||
|
@ -31,21 +31,33 @@
|
|||
|
||||
<b>Class</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STActor.html#class$STActor">STActor</a></li>
|
||||
<li><a rel="gsdoc" href="STBundleInfo.html#class$STBundleInfo">STBundleInfo</a></li>
|
||||
<li><a rel="gsdoc" href="STContext.html#class$STContext">STContext</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#class$STConversation">STConversation</a></li>
|
||||
<li><a rel="gsdoc" href="STEngine.html#class$STEngine">STEngine</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironment.html#class$STEnvironment">STEnvironment</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguage.html#class$STLanguage">STLanguage</a></li>
|
||||
<li><a rel="gsdoc" href="STEnvironmentDescription.html#class$STEnvironmentDescription">STEnvironmentDescription</a></li>
|
||||
<li><a rel="gsdoc" href="STFileScript.html#class$STFileScript">STFileScript</a></li>
|
||||
<li><a rel="gsdoc" href="STLanguageManager.html#class$STLanguageManager">STLanguageManager</a></li>
|
||||
<li><a rel="gsdoc" href="STObjectReference.html#class$STObjectReference">STObjectReference</a></li>
|
||||
<li><a rel="gsdoc" href="STRemoteConversation.html#class$STRemoteConversation">STRemoteConversation</a></li>
|
||||
<li><a rel="gsdoc" href="STScript.html#class$STScript">STScript</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#class$STScriptObject">STScriptObject</a></li>
|
||||
<li><a rel="gsdoc" href="STScriptsManager.html#class$STScriptsManager">STScriptsManager</a></li>
|
||||
<li><a rel="gsdoc" href="STSelector.html#class$STSelector">STSelector</a></li>
|
||||
<li><a rel="gsdoc" href="STUndefinedObject.html#class$STUndefinedObject">STUndefinedObject</a></li>
|
||||
</ul>
|
||||
<b>Protocol</b>
|
||||
<ul>
|
||||
<li><a rel="gsdoc" href="STScripting.html#protocol$(STScripting)">(STScripting)</a></li>
|
||||
<li><a rel="gsdoc" href="STConversation.html#protocol$(STConversation)"><STConversation></a></li>
|
||||
<li><a rel="gsdoc" href="STRemoteConversation.html#protocol$(STEnvironmentProcess)"><STEnvironmentProcess></a></li>
|
||||
<li><a rel="gsdoc" href="STMethod.html#protocol$(STMethod)"><STMethod></a></li>
|
||||
<li><a rel="gsdoc" href="STScriptObject.html#protocol$(STScriptObject)"><STScriptObject></a></li>
|
||||
<li><a rel="gsdoc" href="STScripting.html#protocol$(STScripting)"><STScripting></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<br />
|
||||
</body>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -172,3 +172,24 @@ handler: message to guarded block.
|
|||
guardedBlock handler: handlerBlock.
|
||||
|
||||
If exception occures in guarded block, then handler block is evaluated.
|
||||
|
||||
|
||||
5. Temporaries in blocks
|
||||
------------------------------
|
||||
|
||||
Like other modern Smalltalk implementations, StepTalk supports
|
||||
temporaries in blocks. These block temporaries are declared after the
|
||||
block's arguments in the same way as the temporaries of a method.
|
||||
|
||||
Example with no arguments:
|
||||
[| arr | arr := #( 1 2 3 ). arr addObject: arr count. arr]
|
||||
|
||||
Exmaple with some arguments:
|
||||
[:x :y | | xsqr ysqr | xsqr := x * x. ysqr := y * y. xsqr + ysqr]
|
||||
|
||||
Note that the syntax of a block with temporaries and no arguments
|
||||
begins with the same prefix as a script source (due to an unfortunate
|
||||
choice in the past). This means you cannot start a simple script,
|
||||
i.e., a list of smalltalk statements, with such a block. The simple
|
||||
workaround is to either enclose the block in parentheses or precede
|
||||
the statement with an empty list of temporaries (two vertical bars).
|
||||
|
|
|
@ -23,24 +23,29 @@ main
|
|||
self addFontSample:font
|
||||
].
|
||||
|
||||
"text writeRTFDToFile:'Fonts.rtf' atomically:YES."
|
||||
text writeRTFDToFile:'Fonts.rtf' atomically:YES.
|
||||
|
||||
^nil
|
||||
!
|
||||
|
||||
addFontSample:fontName
|
||||
|
||||
| attr |
|
||||
| attr font |
|
||||
|
||||
Transcript showLine:fontName.
|
||||
|
||||
attr := NSMutableDictionary dictionary.
|
||||
attr setObject:(NSFont fontWithName:fontName size:0)
|
||||
font := (NSFont fontWithName:fontName size:36).
|
||||
|
||||
(font isNil) ifFalse:
|
||||
[
|
||||
attr setObject:font
|
||||
|
||||
forKey:NSFontAttributeName.
|
||||
|
||||
text setTypingAttributes:attr.
|
||||
" text insertText:(fontName,'\n')."
|
||||
|
||||
text insertText:(fontName,'\n').
|
||||
].
|
||||
^self
|
||||
|
||||
|
||||
|
|
321
Examples/Developer/StepUnit.st
Normal file
321
Examples/Developer/StepUnit.st
Normal file
|
@ -0,0 +1,321 @@
|
|||
"
|
||||
@file: StepUnit.st
|
||||
@author: Mateu Batle mateu.batle@tragnarion.com
|
||||
@brief Very simple unit testing framework done in StepTalk
|
||||
for testing Objective C applications
|
||||
@brief $Id$
|
||||
|
||||
StepUnit is released under the terms of the LGPL license.
|
||||
(check http://www.gnu.org/licenses/gpl.txt)
|
||||
|
||||
Help:
|
||||
|
||||
Testing framework is executed running stexec StepUnit, or
|
||||
directly StepUnit.sh. This script scans the currend diretory recursively
|
||||
and runs every script whose filename matches 'test*.st'. It provides in
|
||||
the environment an object called stepunit which has some useful methods
|
||||
for testing. Here is a list of this methods:
|
||||
|
||||
- should: val. Tests result of boolean expression which must be true for
|
||||
test ok.
|
||||
- shouldNot: val. Tests result of boolean expression which must be false
|
||||
for test ok.
|
||||
- shouldBeEqual: left to: right. Tests objects are the same.
|
||||
- shouldRaise: exp. Exp must be a block. Runs the block, which must throw
|
||||
exception for test ok.
|
||||
- shouldBeEmpty: object. Object must be nil, or object isEmpty must return
|
||||
true for test ok.
|
||||
- shouldNotBeEmpty: object
|
||||
|
||||
All methods can be added a 'desc: string' argument, which is recommended to
|
||||
use to identify the test.
|
||||
|
||||
Each test script just has to run the test code and call the testing methods
|
||||
specified before (on the object stepunit already present in the environment).
|
||||
You should also load modules in the environment to access new classes, etc.
|
||||
if needed (with Environment loadModule: 'modulename'). Test example:
|
||||
|
||||
res := 2 + 2.
|
||||
stepunit should: (res = 4) desc: '2 + 2 works'
|
||||
|
||||
"
|
||||
|
||||
[|
|
||||
:numTestFilesOK
|
||||
:numTestFilesFailed
|
||||
:numTestsFailed
|
||||
:numTestsOK
|
||||
:numTotalFailed
|
||||
:numTotalOK
|
||||
:env
|
||||
:conversation
|
||||
:fm
|
||||
|
||||
main
|
||||
"*** Initialize counters ***"
|
||||
numTestsFailed := 0.
|
||||
numTestsOK := 0.
|
||||
numTotalFailed := 0.
|
||||
numTotalOK := 0.
|
||||
numTestFilesFailed := 0.
|
||||
numTestFilesOK := 0.
|
||||
|
||||
"*** Add some classes ***"
|
||||
classes := (NSMutableArray alloc) init.
|
||||
classes += 'STEnvironment'.
|
||||
classes += 'STConversation'.
|
||||
Environment addClassesWithNames: classes.
|
||||
|
||||
"*** Store object in the environment ***"
|
||||
env := Environment.
|
||||
env setObject: self forName:'stepunit'.
|
||||
env setFullScriptingEnabled: YES.
|
||||
|
||||
"*** Create conversation ***"
|
||||
conv := STConversation conversationWithContext: env language: 'Smalltalk'.
|
||||
conv setLanguage: 'Smalltalk'.
|
||||
|
||||
"*** Execute all tests here ***"
|
||||
fm := NSFileManager defaultManager.
|
||||
path := (fm currentDirectoryPath) stringByStandardizingPath.
|
||||
self runTests: path.
|
||||
|
||||
"*** Summary of running test ***"
|
||||
self showSummary.
|
||||
|
||||
^ self
|
||||
|
||||
!
|
||||
|
||||
runTests: path
|
||||
| dirent attr |
|
||||
(((path lastPathComponent) substringToIndex: 1) = '.')
|
||||
ifFalse:
|
||||
[
|
||||
Transcript showLine: '*** Scanning for tests in directory ', (path), ' ***'.
|
||||
dirent := fm directoryContentsAtPath: path.
|
||||
dirent do:
|
||||
[ :file |
|
||||
attr := fm fileAttributesAtPath: (path / file) traverseLink: NO.
|
||||
filetype := (attr @ 'NSFileType').
|
||||
(filetype isEqualToString: 'NSFileTypeDirectory')
|
||||
ifTrue:
|
||||
[
|
||||
fm changeCurrentDirectoryPath: (path / file).
|
||||
self runTests: (path / file).
|
||||
fm changeCurrentDirectoryPath: path.
|
||||
]
|
||||
ifFalse:
|
||||
[
|
||||
(((file pathExtension) = 'st') and: ((file lowercaseString) hasPrefix: 'test'))
|
||||
ifTrue: [self executeTest: (path / file)].
|
||||
]
|
||||
].
|
||||
^self
|
||||
]
|
||||
|
||||
!
|
||||
|
||||
executeTest: path
|
||||
numTestsFailed := 0.
|
||||
numTestsOK := 0.
|
||||
Transcript show: '*** Test Case '.
|
||||
Transcript show: (numTestFilesOK + numTestFilesFailed + 1).
|
||||
Transcript showLine: ': ', path, ' start ***'.
|
||||
code := NSString stringWithContentsOfFile: path.
|
||||
res := conv interpretScript: code; result.
|
||||
Transcript showLine: '*** Test Case ', path, ' finish ***'.
|
||||
(numTestsFailed = 0)
|
||||
ifTrue:
|
||||
[
|
||||
numTestFilesOK := numTestFilesOK + 1.
|
||||
]
|
||||
ifFalse:
|
||||
[
|
||||
numTestFilesFailed := numTestFilesFailed + 1.
|
||||
].
|
||||
^self
|
||||
|
||||
|
||||
!
|
||||
|
||||
showSummary
|
||||
Transcript showLine: '***** SUMMARY *****'.
|
||||
Transcript showLine: 'Name', ' ', 'Failed', ' ', 'OK', ' ', 'Total'.
|
||||
|
||||
Transcript show: 'Files', ' '.
|
||||
Transcript show: numTestFilesFailed.
|
||||
Transcript show: ' '.
|
||||
Transcript show: numTestFilesOK.
|
||||
Transcript show: ' '.
|
||||
Transcript show: (numTestFilesFailed + numTestFilesOK).
|
||||
Transcript showLine: nil.
|
||||
|
||||
Transcript show: 'Tests', ' '.
|
||||
Transcript show: numTotalFailed.
|
||||
Transcript show: ' '.
|
||||
Transcript show: numTotalOK.
|
||||
Transcript show: ' '.
|
||||
Transcript show: (numTotalFailed + numTotalOK).
|
||||
Transcript showLine: ''.
|
||||
|
||||
^self
|
||||
|
||||
|
||||
""" Methods for unit testing """
|
||||
|
||||
!
|
||||
|
||||
should: val
|
||||
val ifFalse: [self testfail] ifTrue: [self testok].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
should: val desc: desc
|
||||
val ifFalse: [self testfail: desc] ifTrue: [self testok: desc].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldNot: val
|
||||
val ifTrue: [self testfail] ifFalse: [self testok].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldNot: val desc: desc
|
||||
val ifTrue: [self testfail: desc] ifFalse: [self testok: desc].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldBeEqual: left to: right
|
||||
(left = right) ifFalse: [self testfail] ifTrue: [self testok].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldBeEqual: left to: right desc: desc
|
||||
(left = right) ifFalse: [self testfail: desc] ifTrue: [self testok: desc].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldRaise: exp
|
||||
flag := false.
|
||||
desc := 'exception not raised'.
|
||||
exp
|
||||
handler:
|
||||
[ :exception |
|
||||
flag := true.
|
||||
desc := (exception name), ' ', (exception reason).
|
||||
].
|
||||
self should: flag desc: desc.
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldRaise: exp desc: desc
|
||||
flag := false.
|
||||
desc2 := desc, ' exception not raised'.
|
||||
exp
|
||||
handler:
|
||||
[ :exception |
|
||||
flag := true.
|
||||
desc := desc, ' ', (exception name), ' ', (exception reason).
|
||||
].
|
||||
self should: flag desc: desc.
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldBeEmpty: object
|
||||
(object = nil)
|
||||
ifFalse:
|
||||
[
|
||||
(object respondsToSelector: #isEmpty)
|
||||
ifFalse: [self testfail: 'object not responds to isEmpty, assumed not empty'.]
|
||||
ifTrue: [self should: (object isEmpty) desc: 'object empty'.]
|
||||
]
|
||||
ifTrue:
|
||||
[
|
||||
self testok: 'object empty'
|
||||
].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldBeEmpty: object desc: desc
|
||||
(object = nil)
|
||||
ifFalse:
|
||||
[
|
||||
(object respondsToSelector: #isEmpty)
|
||||
ifFalse: [self testfail: desc]
|
||||
ifTrue: [self should: (object isEmpty) desc: desc]
|
||||
]
|
||||
ifTrue:
|
||||
[
|
||||
self testok: desc
|
||||
].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldNotBeEmpty: object
|
||||
(object = nil)
|
||||
ifFalse:
|
||||
[
|
||||
(object respondsToSelector: #isEmpty)
|
||||
ifFalse: [self testok: 'object not responds to isEmpty, assumed not empty']
|
||||
ifTrue: [self shouldNot: (object isEmpty) desc: 'object empty']
|
||||
]
|
||||
ifTrue:
|
||||
[
|
||||
self testfail: 'object not empty'.
|
||||
].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
shouldNotBeEmpty: object desc: desc
|
||||
(object = nil)
|
||||
ifFalse:
|
||||
[
|
||||
(object respondsToSelector: #isEmpty)
|
||||
ifFalse: [self testok: desc]
|
||||
ifTrue: [self shouldNot: (object isEmpty) desc: desc].
|
||||
]
|
||||
ifTrue:
|
||||
[
|
||||
self testfail: desc.
|
||||
].
|
||||
^self
|
||||
|
||||
!
|
||||
|
||||
testfail
|
||||
^ self testfail: 'NO DESCRIPTION'
|
||||
|
||||
!
|
||||
|
||||
testfail: desc
|
||||
numTotalFailed := numTotalFailed + 1.
|
||||
numTestsFailed := numTestsFailed + 1.
|
||||
Transcript showLine: 'TEST FAILED: ', desc.
|
||||
^nil
|
||||
|
||||
!
|
||||
|
||||
testok
|
||||
^ self testok: 'NO DESCRIPTION'
|
||||
|
||||
!
|
||||
|
||||
testok: desc
|
||||
numTotalOK := numTotalOK + 1.
|
||||
numTestsOK := numTestsOK + 1.
|
||||
Transcript showLine: 'TEST OK: ', desc.
|
||||
^ self
|
||||
|
||||
]
|
|
@ -1,5 +0,0 @@
|
|||
2003 Apr 04 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* ChangeLog: Added new file.
|
||||
* GNUmakefile: Added flags to show all warnings except for import.
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
/*
|
||||
Server.m
|
||||
|
||||
StepTalk scriptable server example
|
||||
*/
|
||||
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSConnection.h>
|
||||
#import <Foundation/NSHost.h>
|
||||
#import <Foundation/NSRunLoop.h>
|
||||
|
||||
#import <StepTalk/StepTalk.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@interface Server:NSObject
|
||||
- say:(NSString *)string;
|
||||
@end
|
||||
|
||||
@implementation Server
|
||||
- (STEnvironment *)scriptingEnvironment
|
||||
{
|
||||
/* here we should add some objects or class references ... */
|
||||
|
||||
return [STEnvironment defaultScriptingEnvironment];
|
||||
}
|
||||
- (NSDate *)date
|
||||
{
|
||||
return [NSDate date];
|
||||
}
|
||||
- say:(NSString *)string
|
||||
{
|
||||
printf("%s\n",[string cString]);
|
||||
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
|
||||
int main(int argc, const char **argv)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
NSConnection *connection;
|
||||
Server *server = [Server new];
|
||||
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
connection = [NSConnection newRegisteringAtName:@"Server"
|
||||
withRootObject:server];
|
||||
|
||||
if (!connection)
|
||||
{
|
||||
NSLog(@"Unable to register server");
|
||||
[pool release];
|
||||
return 1;
|
||||
}
|
||||
|
||||
NSLog(@"Server started");
|
||||
|
||||
[[NSRunLoop currentRunLoop] run];
|
||||
|
||||
RELEASE(connection);
|
||||
RELEASE(pool);
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
" talkToServer.stalk
|
||||
|
||||
Server script example
|
||||
|
||||
Ussage:
|
||||
stalk Server talkToServer.st [message]
|
||||
"
|
||||
| message |
|
||||
|
||||
((Args count) < 1 )
|
||||
ifTrue:
|
||||
[
|
||||
message := 'Hello!'. ^0
|
||||
]
|
||||
ifFalse:
|
||||
[
|
||||
message := Args objectAtIndex: 0. ^0
|
||||
].
|
||||
|
||||
Server say:message
|
|
@ -1,3 +1,35 @@
|
|||
2013-03-23 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* STShell.m (-initWithConversation:):
|
||||
Check the result of the super class initializer and assign it to
|
||||
self.
|
||||
|
||||
* stshell_tool.m (-run, main): Fix minor space leaks.
|
||||
|
||||
2012-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* STShell.h:
|
||||
* STShell.m:
|
||||
* STShell+output.m: Miscellaneous changes to shut down compiler
|
||||
warnings.
|
||||
|
||||
2005 Aug 30
|
||||
|
||||
* use STLanguageManager instead of removed STLanguage
|
||||
|
||||
2005 Aug 15
|
||||
|
||||
* Added distant environments
|
||||
* Removed named objects as they were causing troubles with distant
|
||||
environments
|
||||
* Suspend completion for distant environments
|
||||
|
||||
Warning: option 'environment' has different meaning. See stshell --help.
|
||||
|
||||
2003 Sep 21
|
||||
|
||||
* Added named objects FileManager, LastCommand and LastObject
|
||||
|
||||
2003 Jun 19
|
||||
|
||||
* Renamed stshell.m to stshell_tool.m. MS Windows was causing problems with
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSBundle.h>
|
||||
#import <Foundation/NSDebug.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSNotification.h>
|
||||
#import <Foundation/NSException.h>
|
||||
#import <Foundation/NSSet.h>
|
||||
|
@ -61,25 +62,25 @@
|
|||
- showResult:(id)obj
|
||||
{
|
||||
const char *className = [NSStringFromClass([obj class]) cString];
|
||||
int objIndex = [objectStack count] - 1;
|
||||
int i;
|
||||
NSInteger objIndex = [objectStack count] - 1;
|
||||
NSUInteger i;
|
||||
|
||||
if(obj)
|
||||
{
|
||||
if([obj isKindOfClass:[NSArray class]])
|
||||
{
|
||||
printf("(%i) %s\n", objIndex, className);
|
||||
printf("(%li) %s\n", (long)objIndex, className);
|
||||
|
||||
for(i = 0;i<[obj count]; i++)
|
||||
{
|
||||
printf("%i %s\n", i,
|
||||
printf("%lu %s\n", (unsigned long)i,
|
||||
[self displayCStringForObject:[obj objectAtIndex:i]]);
|
||||
}
|
||||
|
||||
}
|
||||
else if([obj isKindOfClass:[NSSet class]])
|
||||
{
|
||||
printf("(%i) %s\n", objIndex, className);
|
||||
printf("(%li) %s\n", (long)objIndex, className);
|
||||
|
||||
obj = [[obj allObjects] sortedArrayUsingSelector:@selector(compare:)];
|
||||
for(i = 0;i<[obj count]; i++)
|
||||
|
@ -94,7 +95,7 @@
|
|||
NSString *key;
|
||||
NSArray *keys;
|
||||
|
||||
printf("(%i) %s\n", objIndex, className);
|
||||
printf("(%li) %s\n", (long)objIndex, className);
|
||||
|
||||
keys = [[obj allKeys] sortedArrayUsingSelector:@selector(compare:)];
|
||||
|
||||
|
@ -108,13 +109,13 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
printf("(%i) %s\n", objIndex, [self displayCStringForObject:obj]);
|
||||
printf("(%li) %s\n", (long)objIndex, [self displayCStringForObject:obj]);
|
||||
}
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
- (char *)displayCStringForObject:(id)object
|
||||
- (const char *)displayCStringForObject:(id)object
|
||||
{
|
||||
NSString *str = [object description];
|
||||
|
||||
|
@ -139,9 +140,9 @@
|
|||
|
||||
- (id)listObjects
|
||||
{
|
||||
NSString *str;
|
||||
int i;
|
||||
id object;
|
||||
NSString *str;
|
||||
NSUInteger i;
|
||||
id object;
|
||||
|
||||
printf("Objects\n");
|
||||
for(i = 0; i < [objectStack count]; i++)
|
||||
|
@ -156,7 +157,7 @@
|
|||
str = [str stringByAppendingString:@"..."];
|
||||
}
|
||||
|
||||
printf("%4i: '%s' (%s)\n", i,
|
||||
printf("%4lu: '%s' (%s)\n", (unsigned long)i,
|
||||
[str cString],
|
||||
[[[object class] description] cString]);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
@class STEngine;
|
||||
@class STConversation;
|
||||
@class STEnvironment;
|
||||
@class STScriptsManager;
|
||||
@class NSMutableArray;
|
||||
|
@ -36,8 +36,7 @@
|
|||
@interface STShell:NSObject
|
||||
{
|
||||
STScriptsManager *scriptsManager;
|
||||
STEnvironment *env;
|
||||
STEngine *engine;
|
||||
STConversation *conversation;
|
||||
|
||||
NSString *prompt;
|
||||
NSString *source;
|
||||
|
@ -48,23 +47,16 @@
|
|||
|
||||
BOOL updateCompletionList;
|
||||
NSArray *completionList;
|
||||
BOOL completionEnabled;
|
||||
|
||||
}
|
||||
+ sharedShell;
|
||||
- initWithConversation:(STConversation *)conv;
|
||||
|
||||
- (void)setLanguage:(NSString *)langName;
|
||||
- (void)setEnvironment:(STEnvironment *)newEnv;
|
||||
- (STEnvironment *)environment;
|
||||
|
||||
- (void)run;
|
||||
|
||||
- show:(id)anObject;
|
||||
- showLine:(id)anObject;
|
||||
|
||||
- (id)executeLine:(NSString *)line;
|
||||
|
||||
- showResult:(id)obj;
|
||||
- showException:(NSException *)exception;
|
||||
- (void)showError:(NSString *)errString;
|
||||
@end
|
||||
|
||||
@interface STShell(STShellOutput)
|
||||
|
@ -72,7 +64,8 @@
|
|||
- show:(id)anObject;
|
||||
- showLine:(id)anObject;
|
||||
- showResult:(id)obj;
|
||||
- (char *)displayCStringForObject:(id)object;
|
||||
- (void)showError:(NSString *)errString;
|
||||
- (const char *)displayCStringForObject:(id)object;
|
||||
- showException:(NSException *)exception;
|
||||
- (id)listObjects;
|
||||
|
||||
|
|
|
@ -34,11 +34,13 @@
|
|||
#import <Foundation/NSDebug.h>
|
||||
#import <Foundation/NSNotification.h>
|
||||
#import <Foundation/NSException.h>
|
||||
#import <Foundation/NSFileManager.h>
|
||||
#import <Foundation/NSSet.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
|
||||
static Class NSString_class;
|
||||
static Class NSNumber_class;
|
||||
|
@ -53,7 +55,7 @@ static STShell *sharedShell = nil;
|
|||
- (void)initReadline;
|
||||
@end
|
||||
|
||||
int complete_handler(void)
|
||||
int complete_handler(int count, int key)
|
||||
{
|
||||
return [sharedShell completion];
|
||||
}
|
||||
|
@ -68,31 +70,34 @@ int complete_handler(void)
|
|||
|
||||
+ sharedShell
|
||||
{
|
||||
if(!sharedShell)
|
||||
{
|
||||
sharedShell = [[self alloc] init];
|
||||
}
|
||||
return sharedShell;
|
||||
}
|
||||
|
||||
- init
|
||||
- initWithConversation:(STConversation *)conv
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
[self initReadline];
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
[self initReadline];
|
||||
|
||||
objectStack = [[NSMutableArray alloc] init];
|
||||
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
objectStack = [[NSMutableArray alloc] init];
|
||||
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
addObserver:self
|
||||
selector:@selector(bundleLoaded:)
|
||||
name:NSBundleDidLoadNotification
|
||||
object:nil];
|
||||
|
||||
prompt = @"StepTalk > ";
|
||||
|
||||
scriptsManager = RETAIN([STScriptsManager defaultManager]);
|
||||
|
||||
scriptsManager = RETAIN([STScriptsManager defaultManager]);
|
||||
prompt = @"StepTalk > ";
|
||||
|
||||
conversation = RETAIN(conv);
|
||||
|
||||
/* FIXME: make this more clever for completion handler */
|
||||
if(!sharedShell)
|
||||
{
|
||||
sharedShell = self;
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -113,6 +118,7 @@ int complete_handler(void)
|
|||
RELEASE(objectStack);
|
||||
RELEASE(completionList);
|
||||
RELEASE(scriptsManager);
|
||||
RELEASE(conversation);
|
||||
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
|
||||
|
@ -133,37 +139,27 @@ int complete_handler(void)
|
|||
{
|
||||
NSDebugLog(@"Setting language to %@", langName);
|
||||
|
||||
RELEASE(engine);
|
||||
engine = [STEngine engineForLanguageWithName:langName];
|
||||
RETAIN(engine);
|
||||
}
|
||||
|
||||
- (void)setEnvironment:(STEnvironment *)newEnv
|
||||
{
|
||||
ASSIGN(env, newEnv);
|
||||
}
|
||||
|
||||
- (STEnvironment *)environment
|
||||
{
|
||||
return env;
|
||||
[conversation setLanguage:langName];
|
||||
}
|
||||
|
||||
- (void)run
|
||||
{
|
||||
NSString *line;
|
||||
id result;
|
||||
|
||||
[env setCreatesUnknownObjects:YES];
|
||||
|
||||
[env setObject:self forName:@"Shell"];
|
||||
[env setObject:self forName:@"Transcript"];
|
||||
[env setObject:objectStack forName:@"Objects"];
|
||||
|
||||
/* FIXME: This is unsafe !*/
|
||||
[env setObject:env forName:@"Environment"];
|
||||
|
||||
|
||||
[self showLine:@"Welcome to the StepTalk shell."];
|
||||
|
||||
// NSLog(@"Environment %@", env);
|
||||
|
||||
if(![conversation isKindOfClass:[STRemoteConversation class]])
|
||||
{
|
||||
completionEnabled = YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
[self showLine:@"Note: Completion disabled for distant conversation"];
|
||||
}
|
||||
|
||||
while(1)
|
||||
{
|
||||
line = [self readLine];
|
||||
|
@ -194,12 +190,15 @@ int complete_handler(void)
|
|||
}
|
||||
- (id)executeLine:(NSString *)line
|
||||
{
|
||||
id result = nil;
|
||||
NSString *cmd;
|
||||
id result = nil;
|
||||
|
||||
/* FIXME: why? */
|
||||
line = [line stringByAppendingString:@" "];
|
||||
|
||||
cmd = [line stringByAppendingString:@" "];
|
||||
NS_DURING
|
||||
result = [engine executeCode:line inEnvironment:env];
|
||||
[conversation interpretScript:cmd];
|
||||
result = [conversation result];
|
||||
NS_HANDLER
|
||||
[self showException:localException];
|
||||
NS_ENDHANDLER
|
||||
|
@ -209,7 +208,7 @@ int complete_handler(void)
|
|||
|
||||
- (NSString *)readLine
|
||||
{
|
||||
const char *str;
|
||||
char *str;
|
||||
NSString *actualPrompt = prompt;
|
||||
NSString *line = @"";
|
||||
BOOL done = NO;
|
||||
|
@ -247,15 +246,21 @@ int complete_handler(void)
|
|||
|
||||
- (int)completion
|
||||
{
|
||||
NSEnumerator *enumerator;
|
||||
NSMutableSet *set;
|
||||
NSString *match;
|
||||
NSString *tail;
|
||||
NSString *str;
|
||||
NSArray *array;
|
||||
STContext *context;
|
||||
NSEnumerator *enumerator;
|
||||
NSMutableSet *set;
|
||||
NSString *match;
|
||||
NSString *tail;
|
||||
NSString *str;
|
||||
NSArray *array;
|
||||
int pos = 0;
|
||||
int c;
|
||||
|
||||
if(!completionEnabled)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(rl_point <= 0)
|
||||
{
|
||||
return 0;
|
||||
|
@ -290,7 +295,8 @@ int complete_handler(void)
|
|||
}
|
||||
}
|
||||
|
||||
enumerator = [[env knownObjectNames] objectEnumerator];
|
||||
context = [conversation context];
|
||||
enumerator = [[context knownObjectNames] objectEnumerator];
|
||||
while( (str = [enumerator nextObject]) )
|
||||
{
|
||||
if( [str hasPrefix:match] )
|
||||
|
@ -357,9 +363,8 @@ int complete_handler(void)
|
|||
|
||||
- (id)executeScriptNamed:(NSString *)scriptName
|
||||
{
|
||||
STScript *script = [scriptsManager scriptWithName:scriptName];
|
||||
STEngine *scriptEngine;
|
||||
id result = nil;
|
||||
STFileScript *script = [scriptsManager scriptWithName:scriptName];
|
||||
id result = nil;
|
||||
|
||||
if(!script)
|
||||
{
|
||||
|
@ -369,11 +374,8 @@ int complete_handler(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
scriptEngine = [STEngine engineForLanguageWithName:[script language]];
|
||||
|
||||
NS_DURING
|
||||
result = [scriptEngine executeCode:[script source]
|
||||
inEnvironment:env];
|
||||
result = [conversation runScriptFromString:[script source]];
|
||||
NS_HANDLER
|
||||
[self showException:localException];
|
||||
NS_ENDHANDLER
|
||||
|
@ -381,4 +383,12 @@ int complete_handler(void)
|
|||
|
||||
return result;
|
||||
}
|
||||
- (void)setPrompt:(NSString *)aString
|
||||
{
|
||||
ASSIGN(prompt, aString);
|
||||
}
|
||||
- (NSString *)prompt
|
||||
{
|
||||
return prompt;
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -38,11 +38,15 @@
|
|||
|
||||
@interface STShellTool:NSObject
|
||||
{
|
||||
NSArray *arguments;
|
||||
unsigned int currentArg;
|
||||
STConversation *conversation;
|
||||
NSArray *arguments;
|
||||
NSUInteger currentArg;
|
||||
|
||||
NSString *envName;
|
||||
NSString *languageName;
|
||||
NSString *environmentName;
|
||||
NSString *hostName;
|
||||
NSString *typeName;
|
||||
NSString *languageName;
|
||||
|
||||
}
|
||||
- (int)parseArguments;
|
||||
- (NSString *)nextArgument;
|
||||
|
@ -92,14 +96,34 @@
|
|||
}
|
||||
else if ([@"environment" hasPrefix:arg])
|
||||
{
|
||||
RELEASE(envName);
|
||||
envName = [self nextArgument];
|
||||
if(!envName)
|
||||
RELEASE(environmentName);
|
||||
environmentName = [self nextArgument];
|
||||
if(!environmentName)
|
||||
{
|
||||
[NSException raise:@"STShellToolException"
|
||||
format:@"Environment name expected"];
|
||||
}
|
||||
}
|
||||
else if ([@"host" hasPrefix:arg])
|
||||
{
|
||||
RELEASE(hostName);
|
||||
hostName = [self nextArgument];
|
||||
if(!hostName)
|
||||
{
|
||||
[NSException raise:@"STShellToolException"
|
||||
format:@"Host name expected"];
|
||||
}
|
||||
}
|
||||
else if ([@"type" hasPrefix:arg])
|
||||
{
|
||||
RELEASE(typeName);
|
||||
typeName = [self nextArgument];
|
||||
if(!typeName)
|
||||
{
|
||||
[NSException raise:@"STShellToolException"
|
||||
format:@"Environment description (type) name expected"];
|
||||
}
|
||||
}
|
||||
else if(!isOption)
|
||||
{
|
||||
break;
|
||||
|
@ -128,38 +152,71 @@
|
|||
{
|
||||
currentArg--;
|
||||
}
|
||||
|
||||
- (void)run
|
||||
{
|
||||
STEnvironment *env;
|
||||
STShell *shell;
|
||||
/* Method taken from stexec.m - look there for updates */
|
||||
- (void)createConversation
|
||||
{
|
||||
STEnvironmentDescription *desc;
|
||||
STEnvironment *environment;
|
||||
|
||||
[self parseArguments];
|
||||
|
||||
if(!envName || [envName isEqualToString:@""])
|
||||
if(environmentName)
|
||||
{
|
||||
env = [STEnvironment defaultScriptingEnvironment];
|
||||
/* user wants to connect to a distant environment */
|
||||
conversation = [[STRemoteConversation alloc]
|
||||
initWithEnvironmentName:environmentName
|
||||
host:hostName
|
||||
language:languageName];
|
||||
if(!conversation)
|
||||
{
|
||||
NSLog(@"Unable to connect to %@@%@", environmentName, hostName);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
env = [STEnvironment environmentWithDescriptionName:envName];
|
||||
/* User wants local temporary environment */
|
||||
if(!typeName || [typeName isEqualToString:@""])
|
||||
{
|
||||
environment = [STEnvironment environmentWithDefaultDescription];
|
||||
}
|
||||
else
|
||||
{
|
||||
desc = [STEnvironmentDescription descriptionWithName:typeName];
|
||||
environment = [STEnvironment environmentWithDescription:desc];
|
||||
}
|
||||
|
||||
/* Register basic objects: Environment, Transcript */
|
||||
|
||||
[environment setObject:environment forName:@"Environment"];
|
||||
[environment loadModule:@"SimpleTranscript"];
|
||||
[environment setCreatesUnknownObjects:YES];
|
||||
|
||||
/* FIXME: make this an option */
|
||||
[environment setFullScriptingEnabled:YES];
|
||||
|
||||
conversation = [[STConversation alloc] initWithContext:environment
|
||||
language:languageName];
|
||||
}
|
||||
}
|
||||
|
||||
/* FIXME: make this an option */
|
||||
[env setFullScriptingEnabled:YES];
|
||||
- (void)run
|
||||
{
|
||||
STShell *shell;
|
||||
|
||||
[self parseArguments];
|
||||
[self createConversation];
|
||||
|
||||
shell = [STShell sharedShell];
|
||||
[shell setEnvironment:env];
|
||||
|
||||
if(!languageName || [languageName isEqualToString:@""])
|
||||
{
|
||||
languageName = [STLanguage defaultLanguageName];
|
||||
languageName = [[STLanguageManager defaultManager] defaultLanguage];
|
||||
}
|
||||
|
||||
[shell setLanguage:languageName];
|
||||
[conversation setLanguage:languageName];
|
||||
|
||||
shell = [[STShell alloc] initWithConversation:conversation];
|
||||
[shell run];
|
||||
|
||||
NSDebugLog(@"Exiting StepTalk shell");
|
||||
NSDebugLog(@"Exiting StepTalk shell");
|
||||
RELEASE(shell);
|
||||
}
|
||||
|
||||
- (void)printHelp
|
||||
|
@ -171,7 +228,9 @@
|
|||
"Options are:\n"
|
||||
" -help this text\n"
|
||||
" -language lang use language lang\n"
|
||||
" -environment env use scripting environment with name env\n",
|
||||
" -environment env use scripting environment with name env\n"
|
||||
" -host host find environment on host\n"
|
||||
" -type desc use environment description with name 'desc'\n",
|
||||
[[info processName] cString],[[info processName] cString]
|
||||
);
|
||||
}
|
||||
|
@ -188,7 +247,7 @@ int main(int argc, const char **argv)
|
|||
|
||||
tool = [[STShellTool alloc] init];
|
||||
[tool run];
|
||||
|
||||
RELEASE(tool);
|
||||
RELEASE(pool);
|
||||
|
||||
return 0;
|
||||
|
|
48
Examples/Smalltalk/actor.st
Normal file
48
Examples/Smalltalk/actor.st
Normal file
|
@ -0,0 +1,48 @@
|
|||
| actor engine source method |
|
||||
|
||||
actor := STActor actorInEnvironment:Environment.
|
||||
"Set ivars"
|
||||
|
||||
ivars := NSMutableDictionary dictionary.
|
||||
ivars setObject:1 forKey:'number'.
|
||||
actor setInstanceVariables:ivars.
|
||||
|
||||
" Get the proper engine "
|
||||
engine := STEngine engineForLanguage:'Smalltalk'.
|
||||
|
||||
" This is the source of new method "
|
||||
source := 'increment
|
||||
number := number + 1. ^self'.
|
||||
|
||||
" Create method "
|
||||
method := engine methodFromSource:source
|
||||
forReceiver:actor
|
||||
inContext:Environment.
|
||||
|
||||
" Add the method to the actor "
|
||||
actor addMethod:method.
|
||||
|
||||
" Add another method with an argument "
|
||||
source := 'setNumber:i number := i. ^self'.
|
||||
method := engine methodFromSource:source
|
||||
forReceiver:actor
|
||||
inContext:Environment.
|
||||
actor addMethod:method.
|
||||
|
||||
source := 'print
|
||||
Transcript showLine: (\'The number is \',
|
||||
(number description)). ^self'.
|
||||
method := engine methodFromSource:source
|
||||
forReceiver:actor
|
||||
inContext:Environment.
|
||||
actor addMethod:method.
|
||||
|
||||
" Send it! "
|
||||
actor print.
|
||||
actor increment.
|
||||
actor print.
|
||||
actor increment.
|
||||
actor print.
|
||||
actor setNumber:10.
|
||||
actor print.
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
" List contents of current directory "
|
||||
|
||||
" Script variables "
|
||||
| fileManager path files dict |
|
||||
| fileManager path files |
|
||||
|
||||
" Get default file manager "
|
||||
fileManager := NSFileManager defaultManager.
|
||||
|
@ -18,7 +18,7 @@ files := fileManager directoryContentsAtPath:path.
|
|||
|
||||
" For each file from files do the following ..."
|
||||
files do:
|
||||
[ :file |
|
||||
[ :file | | dict |
|
||||
|
||||
dict := fileManager fileAttributesAtPath: (path / file)
|
||||
traverseLink:NO.
|
||||
|
|
45
Examples/Smalltalk/shell.st
Normal file
45
Examples/Smalltalk/shell.st
Normal file
|
@ -0,0 +1,45 @@
|
|||
"
|
||||
Script shell - shell written in script.
|
||||
|
||||
This is just an example.
|
||||
|
||||
Run it by: stexec shell.st
|
||||
|
||||
Author: Stefan Urbanek
|
||||
Date: 2003 Oct 3
|
||||
|
||||
"
|
||||
|
||||
[| :done
|
||||
|
||||
main
|
||||
| line env engine result |
|
||||
|
||||
Environment includeFramework:'StepTalk'.
|
||||
Environment loadModule:'ReadlineTranscript'.
|
||||
|
||||
" Create environment "
|
||||
env := STEnvironment defaultScriptingEnvironment.
|
||||
env setObject:env forName:'Environment'.
|
||||
env setObject:Transcript forName:'Transcript'.
|
||||
env setObject:self forName:'Shell'.
|
||||
|
||||
" Create and setup engine "
|
||||
engine := STEngine engineForLanguage:'Smalltalk'.
|
||||
|
||||
" Do the loop! "
|
||||
|
||||
[ done ] whileFalse: [
|
||||
line := Transcript readLine:'Shell > '.
|
||||
(line = 'exit') ifTrue: [ done := YES ].
|
||||
result := engine executeCode: (line, ' ') inEnvironment:env.
|
||||
Transcript showLine: result.
|
||||
].
|
||||
^self
|
||||
!
|
||||
|
||||
exit
|
||||
Transcript showLine: 'BLAH'.
|
||||
done := YES.
|
||||
^self
|
||||
]
|
|
@ -33,10 +33,11 @@ ApplicationFinder_PRINCIPAL_CLASS = STApplicationFinder
|
|||
|
||||
ApplicationFinder_BUNDLE_LIBS += -lStepTalk
|
||||
|
||||
ADDITIONAL_INCLUDE_DIRS += -I../../Source/Headers
|
||||
ADDITIONAL_LIB_DIRS += -L../../Source/$(GNUSTEP_OBJ_DIR)
|
||||
ADDITIONAL_BUNDLE_LIBS = -lStepTalk
|
||||
ADDITIONAL_INCLUDE_DIRS += -I../../Frameworks/
|
||||
ADDITIONAL_LIB_DIRS += -L../../Frameworks/StepTalk/StepTalk.framework/Versions/Current/$(GNUSTEP_TARGET_LDIR)
|
||||
|
||||
BUNDLE_INSTALL_DIR:=$(GNUSTEP_INSTALLATION_DIR)/Library/StepTalk/Finders
|
||||
BUNDLE_INSTALL_DIR:=$(GNUSTEP_LIBRARY)/StepTalk/Finders
|
||||
|
||||
-include GNUmakefile.preamble
|
||||
include $(GNUSTEP_MAKEFILES)/bundle.make
|
||||
|
|
|
@ -31,11 +31,11 @@ DistributedFinder_PRINCIPAL_CLASS = STDistributedFinder
|
|||
|
||||
DistributedFinder_BUNDLE_LIBS += -lStepTalk
|
||||
|
||||
ADDITIONAL_INCLUDE_DIRS += -I../../Source/Headers
|
||||
ADDITIONAL_LIB_DIRS += -L../../Source/$(GNUSTEP_OBJ_DIR)
|
||||
ADDITIONAL_TOOL_LIBS += -lStepTalk
|
||||
ADDITIONAL_BUNDLE_LIBS = -lStepTalk
|
||||
ADDITIONAL_INCLUDE_DIRS += -I../../Frameworks/
|
||||
ADDITIONAL_LIB_DIRS += -L../../Frameworks/StepTalk/StepTalk.framework/Versions/Current/$(GNUSTEP_TARGET_LDIR)
|
||||
|
||||
BUNDLE_INSTALL_DIR:=$(GNUSTEP_INSTALLATION_DIR)/Library/StepTalk/Finders
|
||||
BUNDLE_INSTALL_DIR:=$(GNUSTEP_LIBRARY)/StepTalk/Finders
|
||||
|
||||
-include GNUmakefile.preamble
|
||||
include $(GNUSTEP_MAKEFILES)/bundle.make
|
||||
|
|
33
Frameworks/GNUmakefile
Normal file
33
Frameworks/GNUmakefile
Normal file
|
@ -0,0 +1,33 @@
|
|||
#
|
||||
# Main Makefile for the StepTalk
|
||||
#
|
||||
# Copyright (C) 2000 Stefan Urbanek
|
||||
#
|
||||
# Written by: Stefan Urbanek <urbane@decef.elf.stuba.sk>
|
||||
#
|
||||
# This file is part of the StepTalk
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this library; if not, write to the Free
|
||||
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
|
||||
#
|
||||
|
||||
include $(GNUSTEP_MAKEFILES)/common.make
|
||||
|
||||
SUBPROJECTS = \
|
||||
StepTalk
|
||||
|
||||
-include GNUMakefile.preamble
|
||||
include $(GNUSTEP_MAKEFILES)/aggregate.make
|
||||
-include GNUMakefile.postamble
|
||||
|
|
@ -5,3 +5,5 @@ shared_*obj
|
|||
*.bundle
|
||||
*.stmodule
|
||||
*.stlanguage
|
||||
*.framework
|
||||
derived_src
|
16
Frameworks/StepTalk/Environments/Common.stenv
Normal file
16
Frameworks/StepTalk/Environments/Common.stenv
Normal file
|
@ -0,0 +1,16 @@
|
|||
/** Common.stenv
|
||||
* Common scripting environment description
|
||||
*/
|
||||
|
||||
{
|
||||
Name = "Common";
|
||||
|
||||
Bundles = (CommonEnvironment);
|
||||
|
||||
Import = ( "SymbolicSelectors",
|
||||
"Foundation",
|
||||
"AppKit"
|
||||
);
|
||||
|
||||
Applications = ( All );
|
||||
}
|
|
@ -11,7 +11,7 @@
|
|||
{
|
||||
"NSObject-operators" = {
|
||||
Use = (Comparison, KeyValueCoding);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Classes =
|
||||
|
@ -19,7 +19,17 @@
|
|||
All = {
|
||||
|
||||
};
|
||||
|
||||
|
||||
// added by mateu
|
||||
"NSObject class" = {
|
||||
SymbolicSelectors = {
|
||||
"=" = "isEqual:";
|
||||
"==" = "isSame:";
|
||||
"~=" = "notEqual:";
|
||||
"~~" = "notSame:";
|
||||
};
|
||||
};
|
||||
|
||||
NSObject = {
|
||||
Use = ("NSObject-operators");
|
||||
};
|
||||
|
@ -43,7 +53,7 @@
|
|||
{
|
||||
"+=" = "addObject:";
|
||||
"-=" = "removeObject:";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
NSDictionary =
|
||||
|
@ -51,7 +61,7 @@
|
|||
Super = NSObject;
|
||||
SymbolicSelectors = {
|
||||
"@" = "objectForKey:";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
NSUserDefaults =
|
||||
|
@ -59,7 +69,7 @@
|
|||
Super = NSObject;
|
||||
SymbolicSelectors = {
|
||||
"@" = "objectForKey:";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
NSString =
|
||||
|
@ -83,7 +93,7 @@
|
|||
SymbolicSelectors =
|
||||
{
|
||||
"+=" = "appendString:";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
NSSet =
|
||||
|
@ -92,7 +102,7 @@
|
|||
SymbolicSelectors =
|
||||
{
|
||||
"<" = "isSubsetOfSet:";
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
NSMutableSet =
|
||||
|
@ -102,7 +112,7 @@
|
|||
{
|
||||
"+=" = "addObject:";
|
||||
"-=" = "removeObject:";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
NSDate =
|
||||
|
@ -111,7 +121,7 @@
|
|||
SymbolicSelectors =
|
||||
{
|
||||
"-" = "timeIntervalSinceDate:";
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
@ -125,7 +135,7 @@
|
|||
"<>" = "rangeWith:";
|
||||
"@" = "pointWith:";
|
||||
"@@" = "sizeWith:";
|
||||
}
|
||||
};
|
||||
};
|
||||
}; /* Classes */
|
||||
}
|
|
@ -13,7 +13,7 @@
|
|||
"writeToFile:atomically:",
|
||||
"writeToURL:atomically:"
|
||||
)
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Classes =
|
|
@ -11,7 +11,7 @@
|
|||
{
|
||||
Name = "StepTalk";
|
||||
|
||||
Modules = (StepTalk);
|
||||
Frameworks = (StepTalk);
|
||||
|
||||
Classes =
|
||||
{
|
||||
|
@ -21,6 +21,10 @@
|
|||
AllowMethods =
|
||||
(
|
||||
"value",
|
||||
"value:",
|
||||
"value:value:",
|
||||
"value:value:value:",
|
||||
"valueWithArguments:",
|
||||
"valueWith:",
|
||||
"valueWith:with:",
|
||||
"valueWith:with:with:",
|
||||
|
@ -41,5 +45,5 @@
|
|||
Super = nil;
|
||||
Restriction = AllowAll;
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
|
@ -25,7 +25,7 @@
|
|||
"<=" = "isLessOrEqualThan:";
|
||||
">=" = "isGreatherOrEqualThan:";
|
||||
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
NumberArithmetic =
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue